List Category Posts plugin uses get_posts to actually get the posts and its default post_status is publish and that is way you won’t get any private posts.
To “Fix” it you can edit the file named include/CatList.php of the plugin and add
$lcp_query .= '&post_status=private';
before line 51 before
$this->lcp_categories_posts = get_posts($lcp_query);
this will get you only private posts and to really “FIX” it you need to add this code:
if(is_user_logged_in()){
parse_str( $lcp_query, $lcp_query );
$lcp_query['post_status'] = array('publish','private');
}
on line 51 again before
$this->lcp_categories_posts = get_posts($lcp_query);
and offer the author of the plugin this as a patch so the next time he updates you want lose this fix.
Related Posts:
- First item in each category list is not a link
- Customize individual parts of the list – List Category Posts plugin [closed]
- numberposts not showing specific number [closed]
- Table for plugin-list-category-post? [closed]
- List Category Posts: Output thumbnail and post title within a single link
- Display the content of a custom field in the LCP template [closed]
- How to make the ‘more’ link point to the post instead of the category list [closed]
- How can I get List Category Posts to work as a widget? [closed]
- Plugin: List category posts – How to show the caption under thumbnail [closed]
- Use main theme’s CSS for the outer wrapper in list-category-posts?
- list category posts are not ordering any more [closed]
- Plugin list-category-posts – How can I use “id” or “name” parameters? [closed]
- Multiple Categories on Catlist using name function
- plugin-list-category-post Instructions
- having trouble with my list category posts plugin
- is it possible open links in new page-window? [closed]
- How to display a category from a specific post-type
- Exclude current page from list of pages [closed]
- List Category Plugin – Changing the links [closed]
- Which image is used for thumbnail in List Category Post plugin [closed]
- trying to get thumbnail to appear before post [closed]
- Date not displaying in category post [closed]
- Current class hook on generated list
- need pages to display Title
- Align thumbnail
- updated plugin ‘plugin-list-category-post’ is adding a non-linked item [duplicate]
- Pagination for list category post plugin
- Set class on thumbnail images in plugin list category post
- Getting the “more” tag to work with plugin-list-category-post
- List Category Posts – thumbnails
- No posts are being listed by
- list category posts – Ability to add anchor jumps to links [closed]
- Custom post template for particular category [closed]
- Format the output of List category posts plugin [closed]
- List Category Posts V0.21 upgrade breaks site
- Im Trying to link the thumbnail image
- How to use the WP Plugin List Category Post widget (!) with more than one category? [closed]
- Multilanguage Post Titles not Translating with List Category Posts Plugin [closed]
- Can I display a list of categories in a post? [closed]
- With plugin-list-category-post is there a way of sorting titles by a date?
- How do I remove link in posts titles
- Plugin List Category: post custom field doesn’t show anything [closed]
- Limit content size
- Removing category ID’s from a selection list
- What is the difference between private and protected members of C++ classes?
- Does Python have “private” variables in classes?
- Clone A Private Repository (Github)
- What is the use of a private static variable in Java?
- Size has private access in ArrayList
- C++ classes (public, private, and protected)
- Where to securely store API keys and passwords in WordPress?
- simple solution for restricting access to (some) uploads/downloads
- How do I require authorization / login to view a specific set of posts / pages?
- How do I remove unwanted pages like archive, search, etc.?
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Set posts of a custom post type to be private by default?
- Are transients private or public?
- Let private posts stay in status “private” after edit through “editors”
- Fetching private posts or custom post types via WP-API with basic authentication
- Exclude Private, Draft pages from Primary Nav when using custom menu
- Using a private method as an action callback from within a class
- How can I create a separate blog that is private?
- Forum plugin that allows private groups that are invite only [closed]
- Redirect to login when on private page, and when logged in to specific page
- get_terms(); show private posts when logged in
- How do I check if a post is private?
- Attach a private function at a hook?
- WordPress i18n-friendly preg_replace post title
- Members Only site with Feed Keys
- Restricting access to files within a specific folder [duplicate]
- How to keep track of user logins?
- Private pages that work when you are not logged into WP admin
- display public excerpt for private post
- Prevent private post 404
- How to set privilege to wordpress subscriber for private page
- My custom page template with is_user_logged_in() does not detect that I’m logged in
- Make post password required to publish
- List Category Posts plugin upgrade fails with fatal error
- Disable comments from showing up public for Custom Post Type
- Making a Custom Post type only visible to non-users via a specific link
- Best way to have an per-user customized private section
- Restrict WordPress to Private
- How to show just private posts in loop
- Planned private posts get published immediately
- Hide a template part when page is password protected?
- Show a special message for private page?
- What differences are there between a Privately Published post and a Draft post?
- How to create a plugin that notifies for updates?
- Filter post by current 2 differents users id
- How do i make my wordpress website private?
- Can we have private drafts?
- Comprehensively Restrict Post Type Taxonomy to Logged-in Users
- Private Posts/Pages & Search
- How to Filter categories in the permalink structure
- How to make a secure blog that is completely private?
- Group listed elements by category
- View Private Published Page with URL Code (no login required)
- query private custom post type
- Change Visibility to Private
- Private page protected with username and password