[Plugin: List category posts] Feature request: option to include private pages/posts
-
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?
https://www.ads-software.com/extend/plugins/list-category-posts/
Viewing 2 replies - 1 through 2 (of 2 total)
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.