Title: gregarose's Replies | WordPress.org

---

# gregarose

  [  ](https://wordpress.org/support/users/gregarose/)

 *   [Profile](https://wordpress.org/support/users/gregarose/)
 *   [Topics Started](https://wordpress.org/support/users/gregarose/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gregarose/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gregarose/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gregarose/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gregarose/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gregarose/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Making Private Posts visible for Subscribers](https://wordpress.org/support/topic/making-private-posts-visible-for-subscribers/)
 *  [gregarose](https://wordpress.org/support/users/gregarose/)
 * (@gregarose)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/making-private-posts-visible-for-subscribers/#post-1103081)
 * Tony,
 * Don’t know if you solved your issue but I think the reason your edits to function.
   php in your theme didn’t work is because the blog post you mentioned used this
   code:
 * $subRole = get_role( ‘subscriber’ );
    $subRole->add_cap( ‘read_private_pages’);
 * This will allow Subscribers to see private Pages but not private Posts. You also
   need to add
 * $subRole->add_cap( ‘read_private_posts’ );
 * in order for your Subscribers to see private Posts. At least this worked for 
   me. But now I have a problem that my private posts, categories that only have
   private posts and private pages do not show up in the widgets in my sidebar even
   when I am logged in as Administrator or as Subscriber. This happens for the Administrator
   even without the changes to function.php. I can make a category show up in the
   sidebar widget if I add one public post to it but I can’t make a private page
   show up at all. I don’t know enough about WordPress to tell whether a fix for
   this requires just an edit to the theme files or for the core WordPress files.
 * Greg Rose

Viewing 1 replies (of 1 total)