Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I disallow contributors on my site from seeing what other posts are published on the site, and only see their own?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

I hope you are talking about wp-admin section. If yes just place this code in your functions.php file

add_action( 'load-edit.php', 'posts_for_current_contributor' );
function posts_for_current_contributor() {
    global $user_ID;

    if ( current_user_can( 'contributor' ) ) {
       if ( ! isset( $_GET['author'] ) ) {
          wp_redirect( add_query_arg( 'author', $user_ID ) );

share|improve this answer

@Giri: Thanks for the answer but it's not perfect yet.

Admin can modify the query arg "author" manually and they will be able to view the other

if ( ! isset( $_GET['author'] ) ) {

The line above should also check if $_GET['author'] is not current user

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.