- Site is not public. Posts can only be viewed by logged-in users.
- This is only the front end, I don't need limiting in the back end.
- You are awesome and I am SO thankful for any help!
Let's say I have two custom WordPress roles:
In the front end, I would like the "Show All Posts" page, which is the index of all posts, to only display posts added by users with the same role.
For example, if a user with the elephant role creates a post, then only users with the elephant role can see those and only those posts. Users with the cheetah role can only view posts created by others users with cheetah role.
Is there a modification I can perform within the codebase to accomplish this? Better yet, is there a plugin that can do this? I don't mind getting my hands dirty if no plugin comes to mind.
I'm sincerely thankful for any help.