Skip Navigation

[Resolved] Allow Registered users to view posts from selected post categories

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1204954

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

#1205252

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/