[wp-hackers] query_posts with taxonomy
molnar.marton at gmail.com
Thu Mar 24 14:47:14 UTC 2011
Hi! There's a typo in your code:
should be 'products'.
On Thu, Mar 24, 2011 at 3:38 PM, Rafael Ehlers <rafaehlers at gmail.com> wrote:
> What Im doing wrong here?
> I have 1 product in two taxonomies -> Clothing and Featured
> my query is:
> query_posts(array('post_type'=> 'produtcs','posts_per_page' =>
> '3','tax_query' => array(array('relation' => 'IN','taxonomy' =>
> 'categories','field' => 'slug','terms' => 'featured')) ));
> Someone help me please, that product isnt showing up!
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers