get_posts by custom term ignores post_type & category? (1 post)

  1. Sam_a
    Posted 6 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic