PublishPress Permissions makes it possible to control who can view and read content with a specific category attached.
In this situation, “read” means “view”. So we're going to control who can see this content.
By default, Categories are only available on WordPress Posts. However, you can add Categories to other post types and so you will be able to use the tutorial for those post types too.
Control Who Can Read Posts in Certain Categories #
- Install the PublishPress Permissions plugin.
- Go to Posts > Categories.
- Open the category that you want to control viewing access for.
- Look underneath the category for the “Permissions: Read Posts in this Category” box:
This “Permissions: Read Posts in this Category” box allows you to customize who can read this post. You can choose permissions for Roles, Groups or even individual users.
For example, in the image above, everyone can read this post. Even people who no user account on your site can read this content.
However, you can change these settings so that only Administrators and Editors can read the post: