WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.