Tell us what you are trying to do?
I want registered users to have the possibility of choosing from which Post Categories they want to see posts on their unique post archive page.
I am using Types, Views, CRED, and the DIVI theme.
The idea is to do the following:
1. Have the user click a Toggle button on a category archive page indicating whether to "FOLLOW" or UNFOLLOW"
2. Have a list of all FOLLOWED categories in the user admin page
3. Have a specific archive page for each user which only displays posts from categories that the user has "FOLLOWED"
4. Followed category page posts should be listed chronologically and the results should be listed mixed by time / date order as opposed to by category.
Please let me know how I could achieve this.
Thanks
Hello,
There isn't such kind of built-in feature within Toolset plugins, especially: "FOLLOW" or "UNFOLLOW".
Since WordPress taxonomy does not support WordPress user, so you can not register Post Categories to WordPress user direcly.
As a workaround, you can setup a intermediate post type(Member), register taxonomy "Post Categories" to post type "Posts", use it to setup relationship between WordPress user and posts.
For example:
1) Create a post type "Member", assigned with taxonomy Post Categories
2) Each WordPress user owns only one Member post(post author), user can edit his own "Member" post and setup terms in Post Categories.
3) Create a nested view:
a) Parent post view:
- query "Member" post,
- filter by post author = current logged-in user:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/
- in view's loop, display below child post view
b) Child post view:
- query posts
- filter by:
Select posts with taxonomy:
Categories the same as the current post in the loop
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/
More help:
How to Create Custom Searches and Relationships for Users
https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/