How to Show or Hide Other Users’ Posts in WordPress
By default, WordPress users in the admin area can see all the Posts on the site, regardless of whether they are the author.
This is not a problem for many sites. After all, most Posts on most sites are publicly available – there's no need to hide them.
However, in some situations, site owners don't want authors to see the Posts that other users are working on. For example, one PublishPress customer wanted to create a private inbox for WordPress users.
Fortunately, there's an easy way to solve this problem thanks to PublishPress plugins.
How to hide other users' posts
Hiding posts from other users is straightforward. You can do it by installing the PublishPress Permissions Pro plugin.
After installing PublishPress Permissions Pro, this plugin will hide all the Posts from other users. When users in the “Author” role go to the “Posts” screen, they will now only see their posts. What this means is that users won't be able to see any posts that they can't edit.
And this next image shows what the same user sees after the plugin is activated and configured. Notice that the numbers across the top of the screen have changed. For example, “Published” has dropped from 3 to 1.
This setup is fully compatible with the PublishPress Authors plugin so you can still safely assign more than one author to a post. It is also possible to block users from seeing other people's files in the WordPress Media Library.
Change how can see other users' posts
The PublishPress Permissions plugin will hide non-editable posts for all users. You can restore this option for some user roles by installing the PublishPress Capabilities plugin. With this plugin, you can add extra permissions for user roles, including these:
- list_posts: View posts that you can edit.
- list_others_posts: View posts that you can not edit.
- list_pages: View pages that you can edit.
- list_others_pages: View posts that you can not edit.
You can set up similar permissions for any post type. For example, this would cover a post type called “Events”:
Here's how you can configure these permissions:
- Go to “Capabilities” in your WordPress admin menu.
- In the top-left corner, choose the user role you want to edit.
- Enter the new permission into the “Add Capability” box.
- Click “Add to role”.
- Scroll down and make sure that the box is checked for your new permission.
- Click “Save Changes”.
This new screenshot shows what Authors can see now that they have the list_others_posts permission. They can see posts written by other users, but can not edit them.
More on permissions in the WordPress admin area
If you're curious exactly what users can see inside your WordPress admin area, check out these guides:
- What permissions do Subscribers have in WordPress?
- What permissions do Contributors have in WordPress?
- What permissions do Authors have in WordPress?
- What permissions do Editors have in WordPress?
Get all the power of PublishPress
Get a PublishPress membership today for full access to all our publishing and permissions plugins.