Creating quality content and driving more visitors to our site would be the primary aim of most bloggers. We need our new content to be crawled by search engines as soon as possible so that our blog appears quickly on the search engine results page. We also employ different strategies like social media marketing, paid advertising, and so on to gain more traffic. But have you ever thought of creating private or password-protected WordPress blog posts that can only be viewed by selected users?
This is quite different from the concept of a private blog where the entire blog content is visible only to privileged users. Before going to the details of creating such posts let us first understand its importance.
Why do we need private or password-protected posts?
Before going into the details of creating private or password posts let us understand why we require such posts. As WordPress is the most popular blogging platform it has to cater to a wide variety of requirements. Let us take an example of such a requirement for a site that accepts guest posts.
Such sites may need to provide certain guidelines to their guest bloggers regarding the posts or provide some SEO tips for making the post better. Such content could be shared via a private post. Another example would be content that needs to be reviewed on the live website before actually making it visible to everyone. These are just a few instances where the concept of private or password-protected posts is helpful.
How to create a private WordPress post?
Any user who has permission to write a blog can create a private post. The process is quite simple. While creating a new post or editing an existing post we have seen a visibility option towards the right side of the screen as shown below.
When we click the edit link we will be provided with three options Public, Password Protected, and Private. Select the Private option and click ok. If it is a new post click publish else click the update button.
That is all we have to do and our post has become private. Now let us see how this works. Go to the link of the private post. We can see that it is marked as private as shown below.
Only users with administrator and editor roles can view the private posts. User with the author’s role can view their private blog alone and cannot view private posts created by other authors.
Private posts will not appear in the list of articles in our blog. Even if a visitor enters the correct URL of a private post he would not be able to see the content. We can only view the posts if we are logged in to the blog with proper credentials.
How to create a password-protected WordPress post?
In the edit options of the visibility section, we have already seen another option Password Protected. Now let us understand the concept of Password Protected posts and the difference between private and password protected posts.
Once the visibility is set as Password Protected and blog is updated or published it will appear in the list of blogs along with public content, unlike a private post. But a visitor is prompted with a password option as shown below.
Only after entering the correct password, we can read the blog. But if our site has multiple administrators or editors then all of them can view the password-protected post in the admin section of our blog.
Thus in a few simple steps, we have learned to create both private as well as password-protected posts in WordPress.