There are many ways to password protect a private page or post. In this article, we will walk you through 5 different ways to do so using our Password Protect WordPress plugin:
- Password protect this page under plugin’s popup
- Password protect with WordPress default feature
- Password protect by user roles
- Password protect multiple pages and posts
- Password protect all child pages or all posts under a category
Password protect this page under plugin’s popup
Once you install and activate our plugin successfully, you should see a new “Password Protection” column under all Pages & Posts.
Simply click on “Password protect” and then “Password protect this page” under popup to protect your private content. Our plugin will auto-generate a new password after protection.
You can create and customize as many passwords as you want. The password created by this method is categorized as Global (custom), which means that anyone can use it to access your protected page.
Password protect with WordPress default feature
Besides password protecting by our plugin, you can still use the “Password Protected” feature of WordPress.
- Locate Visibility option under Publish section on the right sidebar of the Edit page
- Choose Password Protected instead of “Public”
- Enter a password
Alternatively, click Quick Edit under page’s title to add a new password.
Please note that this method just allows you to create one password which applies to all visitors and users of your website. It is categorized as Global (default) to differentiate from Global (custom) password generated by our plugin.
Password protect by user roles
If you want to grant access to certain user roles, you have a choice to create passwords for only these groups of people. No one without the right role is able to access your content even though they have the right password.
You will see Password protected by option under the Publish section in the right sidebar of the Edit page. Simply choose a user role and then create a specific password for them.
Click “Save” to update the change. You can still set passwords for other user roles without having to refresh the page.
Password protect multiple pages and posts
This option allows you to protect multiple pages and posts simultaneously with the same password, which is categorized as Global (shared). You can enable it under our plugin’s Settings page.
Password protect all child pages or all posts under a category
- Protecting a parent page will auto-protect all its child pages.
- These pages will use the same password
- The total usage is counted for both child and parent pages
- You can only manage passwords through the parent page
- Protecting a category will auto-protect all posts under it.
- A new password will be auto-generated for each individual post
- A category becomes unprotected if there is at least one post under it is unprotected