This website uses cookies in order to offer you the most relevant information and services online. Please accept cookies for optimal performance.
Learn More

Password Protect a Page or Post in WordPress

WordPress comes with some basic content visibility options that allows you to control who can see your posts/pages on an individual basis.

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'.

Figure 1
Figure 1

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.

Figure 2
Figure 2

  1. Public: Public visibility means that the content will be visible to anyone and everyone as soon as it is published.
  2. Password Protected: Password Protected content is not immediately visible to anyone and everyone.
  3. 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.

Figure 3
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.

Give your feedback to improve the article

Latest Product Updates

Get the latest news and updates about Batoi Products - articles and product releases.

Need our assistance? We are available with you.

Existing Customer?
Get Support
Talk To Consultant?
Get An Appointment
Contact Us

Batoi global offices and contact details

Stay Connected

Join our community, newsletters, and social media.

Batoi's Annual Cloud Conclave is coming soon. Please watch out.