List Category Posts not showing posts marked private to logged-in users

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 … Read more

Plugin list-category-posts – How can I use “id” or “name” parameters? [closed]

You have two conflicting parameters in your shortcode: categorypage – Set it to “yes” if you want to list the posts from the current post’s category. And id – To display posts from a category using the category’s id. Ex: [catlist id=24]. You can include several categories: Ex: [catlist id=17,24,32] or exclude a category with … Read more

list category posts are not ordering any more [closed]

While Xufyan’s answer will get the job done, it does cause your page loads to run an extra query and you might get some unpredictable behavior. Furthermore, it doesn’t get to the root of your issue. If you’re comfortable with PHP, open up your theme’s functions.php file and enter this: add_filter(‘request’, ‘order_posts_by_title’, 999 ); function … Read more

Use main theme’s CSS for the outer wrapper in list-category-posts?

To format the overall list container use the class paramater: class – CSS class for the default UL generated by the plugin. Also, you can change the generated code to a div if you pass the parameter “div” to “template”: [catlist template=div class=mygallerytheme] This will create something like: <div class=”mygallerytheme”> <p>Post 1</p> <p>Post 2</p> </div> … Read more

Display the content of a custom field in the LCP template [closed]

Add a line like this for each custom field you’d like to display in your template code. You can display multiple custom fields. You may have to comment out the default custom_field_display line. $lcp_display_output .= $this->get_custom_fields(‘custom_field_name’, $single->ID, ‘span’, ‘class_name’); // you can copy and paste this line, changing custom_field_name for each custom field you’d like … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)