If you have a multi-author based site, then by default everyone will be able to see the post-panel of others besides their posts. Although I can’t edit them. If you are the admin of the site, you will want to hide the posts of any other author. And that makes sense.

So let’s see how you can show only the posts of ঐ logged in Author on the dashboard to a specific Author. The work is very easy. There are many ways. I picked up the easiest of them all.

From Dashboard Appearance> Editor. Go to your theme’s function.php. And add the code below.


add_action( ‘load-edit.php’, ‘display_authors_posts_only’ );
function display_authors_posts_only() {
global $user_ID;
if ( current_user_can( ‘edit_others_pages’ ) ) return;
if ( ! isset( $_GET[‘author’] ) ) {
wp_redirect( add_query_arg( ‘author’, $user_ID ) );
exit; } }

Diameter. You’re done. : D

Leave a Reply

Your email address will not be published. Required fields are marked *