Support » Fixing WordPress » get_posts by custom term ignores post_type & category?

  • get_posts by my custom term works correctly, but any additional category or post_type parameters seem to be ignored.

    For example,

    get_posts( array(
    	  'my_taxonomy' => 'my_term_slug'
    	, 'category_name' => 'a_category_name'
    ));

    retrieves posts in ‘my term’ regardless of category, and

    get_posts( array(
    	  'my_taxonomy' => 'my_term_slug'
    	, 'post_type' => 'post'
    ));

    retrieves posts and pages in ‘my term’.

    Am I doing something wrong? Is it just not possible to combine custom taxonomy parameters with others in 2.9?

  • The topic ‘get_posts by custom term ignores post_type & category?’ is closed to new replies.