How To Password Protect A Category In WordPress Without A Plugin

How to password protect a category in WordPress

Password protecting specific categories is a way you can use to hide the content that you wouldn’t like to show your website visitors.

Key Features of Password Protected Categories in WordPress

  • It supports any type of category in WordPress is it standard post or custom post.
  • It locks all types of custom post type category.
  • Whether it is a content of any type or any sub categories, they get’s protected automatically with password protection.
  • Supports multiple passwords for each category.
  • Permits you to modify WordPress user roles and capabilities.
  • Creates customizable login page text and button.
  • Allows you to choose whether to show or hide protected categories and their contents.
  • Specifying the number of days before users have to re-enter the password is also possible.

You can password protect categories in either Category or post page. If you want to password protect a blog category, head over to Posts > Categories.

At the bottom of the form, you will see a new Visibility box that enables you to password protect categories, as well as make categories available only to Admin and Editor user roles. You can also add multiple passwords for the same category.

enter password

You need to note that the password is linked to that specific category. If a user logs in with a password for that category, he/she will automatically be directed to that specific category.

An important thing you need to keep in mind when building your password structure is that a user after entering the password automatically gains access to all subcategories of the category.

So, this is how you can password protect a category in WordPress without using a plugin.

Summary
How To Password Protect a Category in WordPress Without A Plugin
Article Name
How To Password Protect a Category in WordPress Without A Plugin
Description
Learn how to password protect categories of WordPress site without any plugins and thus not letting others to see everything on your site.
Publisher Name
M&M Web Solutions
Publisher Logo

Leave a Reply

Your email address will not be published.