I want users to be able to create posts that are only visible to other users with the same role. For example, if User A creates a post, it should only be visible to other users with Role A. This would enhance privacy on my private WordPress site.
I’m building a private WordPress site where only logged-in users can access it. Each user will have a custom role (Role A, B, or C). I want users to be able to create posts, but each post should automatically be visible only to users with the same role. So once user A with Role A creates a post it should immediately be visible only to other Role A users, without having to do anything other than typing the post. I’m looking for a free and simple solution, ideally using plugins or built-in WordPress features. Any recommendations on the best approach or workflow would be appreciated!