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.
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.
What this means is that users won't be able to see any posts that they can't edit.
The image below shows what a user in the Author role can see on a WordPress site before PublishPress Permissions Pro is installed and correctly configured.
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.
How to show 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”.
In the steps above, I've modified the Authors role that we discussed earlier in this tutorial. 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.