If you will publish a post or page in WordPress then it will be visible to visitors right away but sometimes you want to show content to specific people. So you can do it very easily in WordPress by adding a password to your post or page. After entering that password, the visitor will be able to see post or page content. These are the steps to add password to your post or page:

Step 1: On the right side of the page editor you will see Publish section. There you will see Visibility option. You need to click on Edit link after Public label. Visibility is set to Public by default but we will change it to Password protected.

protect wordpress page or post with password

Step 2: After clicking Edit link you will see other two options Password Protected and Private. Please see below image:

password protect wordpress post or page

You need to click on Password protected and then you need enter your password in password box and then click on ok button.

  • godaddy

  • Step 3: Now you will see that your page or post visibility is changed to Password protected. Now you need to click on Publish button but if you are adding a password to the existing published post or page then you will see the Update button instead of Publish button. Now you will click the Update button. I am creating a new post so it’s showing Publish button. Please see this below image:

    how to apply password to wordpress post or page

    Step 4: After clicking publish or update when you will open your post or page you will see that it will ask for a password and it will show you a message that “This content is password protected. To view it please enter your password below“. Please see this below image:

    Now enter your password which we added in step 2. After entering that password, content will be visible to you. So in this way you can protect your post or page with a password in WordPress.

    If you are facing any issue then please message me below in comments section and don’t forget to share this article.

    Share this post on: