Password Protect a Page or Post in WordPress
In this article, we will guide you how to create a password protected page or post in WordPress.
When you have finished with writing the post and you are on the 'Add New Post' screen, you should see a box labeled, 'Publish' to your right. There you can find an option called 'Visibility' as shown in Figure 1. The default state of posts and pages is 'Public'.
Click on the 'Edit' link besides 'Visibility' as shown in Figure 1. You have the following option to set for the blog as shown in Figure 2.
- Public: Public visibility means that the content will be visible to anyone and everyone as soon as it is published.
- Password Protected: Password Protected content is not immediately visible to anyone and everyone.
- Private: Private content is published only for you, or for only those with authorization permission levels to see private content. Private content can be seen only when the users with appropriate permission levels (Administrator or Editor) are logged in to WordPress.
Note: If your website has multiple editors or administrators, they will be able to see your protected and private posts in the Edit screen. They do not need the password to be able to see your protected posts. They can also see the private posts in the Edit posts/pages list, and can modify them, or even make them public.
To password protect a post, click the 'Password Protected' radio button.
Upon doing so a further text box to appear, as shown in Figure 2.
Enter a password and click the 'OK' button and then the 'Publish' button as shown in Figure 2.
Your post is now password protected. Now, visitors to your website will be prompted to enter the password if they want to see the content of the post as shown in Figure 3.Note: You need to share the password with the visitors, who can see the content of the post.
Once they enter the password and hit the 'Enter' button as shown in Figure 3, they will be able to see the content of the post.
You can follow the same steps to password protect a page in WordPress as well.