Not choosing category if there's a space in name
-
If a category name has a space in it, your plug-in does not return any results. Consider using category-slug instead per the Codex: https://codex.www.ads-software.com/Function_Reference/query_posts
if (is_category('category-slug')): query_posts(array('category_name' => 'my-category-slug', 'posts_per_page' => -1 )); endif;
Tested by just putting the category slug into the wp_options: widget_rpbc – category_name value.
Also, the “Show credits” checkbox doesn’t stick on Save.
Thanks!
https://www.ads-software.com/extend/plugins/wp-siren-recent-posts-by-category/
- The topic ‘Not choosing category if there's a space in name’ is closed to new replies.