How to Create Password Protected Posts in WordPress

| WordPress
Create Password Protected Posts in WordPress

Did you know that WordPress offer the ability to password-protect the posts that you write?

This feature doesn't require a plugin and is a core feature of WordPress.

In this short, I'm going to show you how to create protected posts. Each WordPress post will need it's own password, so this won't work for protecting a whole site.

Step #1. Create a post

First, let's create the post that we're going to protect.

  • Go to Posts > Add new.
  • Add a title and some content. 

If you're going to write something that's protected, make sure that the content is valuable. This guide shows how to set a minimum number of words for WordPress post.

How to password protected posts wordpress

Step #2. Set the Visibility for the post

  • In the "Publish" area click the "Edit" link next to Visibility.
password protected posts wordpress
  • Set the visibility to "Password protected"
  • Set a custom password. In the image below, I'm setting it to "something".
  • Click the "Publish" button when you're finished.
password protected posts wordpress

Step #3. Check the End Result

Now you can visit the front of your site to see if everything is working correctly.

  • Click the "Preview Changes" button to view your new post.
  • You will notice a password field. Here you need to type the password from Step #2.
  • Click "Submit".
password protected posts wordpress

You will now see that your secret content is visible:

password protected posts wordpress

Summary

Hopefully this tutorial helps you. Adding a password to your posts really is quite a simple process.

If you need to control who can publish posts on your site, we highly recommmend the PublishPress plugin. Here's a sample publishing workflow in WordPress.

If you need to protect your images (rather than just your posts) check out how to restrict Media Library access in WordPress and also how to protect image and file uploads in WordPress.

Have any questions about password-protecting your WordPress content? Leave us a question in the comments below ...


About the author

Valentín creates beautiful designs from amongst the tequila plants of Jalisco, Mexico. You can see Valentín's design work all over this site and you can often find him helping members in support.