Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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)