What is a Private Post in WordPress? How Does it Work?
A private post in WordPress is not visible to the public. Only logged in users with right permissions can see it among your blog posts.
WordPress comes with a built-in user role system that assigns permissions and capabilities to different user roles. Each WordPress user has a role assigned to them which gives them permissions to do specific tasks on a website.
Any user who has the permission to publish a post can write a private post and publish it. The post will be visible to the user and following user roles.
- Administrator – Can create, edit, and delete any private post created by any user on a WordPress site.
- Editor – Can create, edit, and delete any private posts created by any user.
- Author – Can create, publish, edit, view and delete their own private posts. They cannot see private posts created by other users.
That being said, let’s take a look at how to create a private post in WordPress.
Creating a Private Post or Private Page in WordPress
First you need to create a new post or page. You can also edit an existing post that you want to make private.
On the post edit screen, you need to click on the ‘Edit’ link next to the ‘Visibility’ option in ‘Publish’ meta box.
You will now see options to make a post sticky, password protected, or private. Go ahead and select private and then click the OK button to continue.
You can now continue editing the post or you can save/publish it.
If you visit your website, then you will see your Private blog post marked like this:
Users who don’t have permission to see private posts will not see it.
Note: Images you add to a private post are not private and can be viewed in media library by other authors. Images can also be viewed by anyone who has the image URL.