WordPress.org

Ready to get started?Download WordPress

Forums

WPSIREN Recent Posts By Category
Not choosing category if there's a space in name (1 post)

  1. jhoffman255
    Member
    Posted 1 year ago #

    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: http://codex.wordpress.org/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!

    http://wordpress.org/extend/plugins/wp-siren-recent-posts-by-category/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.