• Hi, thanks for the great plugin.

    I am using List Category Posts to populate a content slider on my home page with the content from a set of other pages. I don’t want the other pages to be visible elsewhere on the site, so I’ve made them private. In order for List Category Posts to show the private page content to non-logged-in users I’ve commented out the ‘if’ statement at line 60 of include/CatList.php:

    //Get private posts
    // if(is_user_logged_in()) { do this for all users }

    I thought it would be handy to add a ‘showprivate’ parameter to control this. The revised code would be:

    //Get private posts
    if (is_user_logged_in() ||
    (isset($this->params['showprivate']) && $this->params['showprivate'] == 'yes')) { ... }

    A candidate revision for the next release?

    http://wordpress.org/extend/plugins/list-category-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Couldn’t you just put the Private posts in a category and then have LCP call that category?

    Thread Starter mr.perplexed

    (@mrperplexed)

    Unfortunately not. I’m not using the ‘private’ status to group the posts; I’m using it to hide those posts from appearing elsewhere on the site. Whatever category the private posts are in, LCP as it is won’t display them. Hence the need for the change.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: List category posts] Feature request: option to include private pages/posts’ is closed to new replies.