DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

When you’re running a multi-author blog, it can be very useful to allow each author to only see his own posts in the admin post list. Here is a simple code snippet to do it.

Paste the code below into your functions.php file. Once you saved the file, authors will only see their own posts in the admin post list.


function mypo_parse_query_useronly( $wp_query ) {
    if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false ) {
        if ( !current_user_can( 'level_10' ) ) {
            global $current_user;
            $wp_query->set( 'author', $current_user->id );

add_filter('parse_query', 'mypo_parse_query_useronly' );


Thanks to WP Snippets for the code!

One Comment

  1. Elliott Richmond

    That’s sweet I can see a use for that, especially for large user based website.

Leave a Comment

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