How to Create a Private Post in WordPress
Updated 3 months ago
Do you need to create a private post in WordPress? Unlike public WordPress posts, a private post won’t be visible to visitors to your website; only users who are logged in and have specific permissions can see these posts. This is useful when we haven’t finished designing or writing some content, or when it should only be visible to its creator. Note: You can change its status from “private” to “public” at any time, and vice versa.
In this article, we’ll 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 isn’t visible to the public, but only to users who are logged in and have the appropriate permissions.
WordPress comes with a built-in system of user roles that assigns different permissions and capabilities to users based on their roles.
Any user with permission to publish a post can write and publish it as private. It will be visible to that user and to anyone authorized to view it based on 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.
Creating private content
First, you need to create a new post or page (or you can edit an existing post that you want to keep private).
On the content editing screen, you’ll find the “Visibility” option in the “Publish” box on the right.
Also note that you can password-protect the content.
After setting your content to private (or password-protected), you can continue editing your post or save it.
Remember, you can publish it (make it public again) whenever you want.
Users who don’t have permission to view private posts won’t see anything at all (they’ll just see a message saying that the URL isn’t on the site).
Note: Images added to a private post aren’t private, and other authors/editors can 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.