[Resolved] [Plugin: Network Latest Posts] No output for selected caregories
[nlposts title=” number=’5′ thumbnail=true auto_excerpt=true paginate=true display_root=true ignore_blog=’1,2,5′ paginate=true cat=’crime-news’]
I have posts in specified category but got no output at all with your plugin.
I have checked the code and put ‘echo $filter_cat’ before $filter_cat was inserted in sql string and look what i got:
AND (ID = Array
and that’s how sql looks:
SELECT ID, post_title, post_excerpt, post_content, post_author, post_date FROM wp_posts WHERE post_status = ‘publish’ AND (ID = Array ) AND post_type = ‘post’ AND post_date >= DATE_SUB(CURRENT_DATE(), INTERVAL 0 DAY) ORDER BY id DESC LIMIT 0,5
Of course it does not work. Something wrong with your code.
- The topic ‘[Resolved] [Plugin: Network Latest Posts] No output for selected caregories’ is closed to new replies.