How to Create a Private Post in WordPress
Updated last month
Do you need to create a private post in WordPress? Unlike public WordPress posts, visitors to your website will not be able to see a private post; only users who log in with specific permissions will be able to view these posts. This is useful when we have not yet finished designing or writing content, or when it should be viewable only by its creator. Note: you can change the status from "private" to "public" at any time, and vice versa.
In this article, we will show you how to easily create a private post in WordPress.
What Is a Private Post in WordPress and How Does It Work?
A private post in WordPress is not visible to the public, but only to those who log in with the appropriate permissions.
WordPress comes with a built-in user role system that assigns different permissions and capabilities to users based on their roles.
Any user who has permission to publish a post can write it as private and publish it. It will be visible to that user and anyone authorized to view it according to their assigned role:
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 post created by any user.
Author: can create, publish, edit, view, and delete their own private posts. They cannot view private posts created by other users.
Create private content
First, you need to create a new post or page (or you can also edit an existing post that you want to keep private).
On your content editing screen, you will find the "Visibility" option for your content inside the "Publish" box on the right.
Please note that you can also protect the content with a password.
After setting your content as private (or password-protected), you can continue editing your post or save it.
Remember that you can publish it (making it public again) whenever you want.
Users who do not have permission to view private posts will not see anything at all (instead, they will see a message indicating that the URL cannot be found on the site).
Note: Images added to a private post are not private, and other authors/editors may find them in the media library.
Additional note: these images can also be viewed by anyone who knows the image URL. E.g.: www.misitio.com/wp-content/uploads/2020/imagen.jpg
We hope this article has helped you learn how to create a private post in WordPress.