1. Knowledge Base
  2. Password Protected Categories
  3. Getting Started

Creating private WordPress categories

The Password Protected Categories WordPress plugin has an option to mark categories as private. This works in exactly the same way as private WordPress pages or posts, which you can read about in the WordPress Codex. You can create private categories for any type of content in WordPress including blog posts and any custom post type.

Who can see private categories and their posts?

For most sites, only logged in Editors and Administrators can see private categories and the posts within them. You can change this by editing the permission levels for your site.

How to create private WordPress categories

  1. To mark a category as private, go to the Add or Edit Category screen for your post type (e.g. Posts → Categories) and click the option to either add a new category or edit an existing one.
  2. In the ‘Visibility’ section above the ‘Add New Category’ button, select ‘Private’ before saving your category.
  3. You can add as many private categories as you like, while leaving the remaining categories public.

Private WooCommerce Category

Logging into private categories

Private categories use the standard WordPress login system. This means that people can login via the default WordPress login page (/wp-admin) or you can install any front end login plugin such as Theme My Login or Profile Builder. If you’re using an e-commerce or events plugin that comes with its own login page, then this will work too.

We particularly recommend Theme My Login because it has a handy feature where you can choose where each person is redirected based on their user role. If you have created a dedicated role for people who can access your private categories, then you can use Theme My Login to automatically direct them to the private category when they login.

Still need help?

If searching the knowledge base hasn't answered your question, please contact support.

Related Articles