[wp-hackers] query_posts with taxonomy
Molnár Márton
molnar.marton at gmail.com
Thu Mar 24 14:47:14 UTC 2011
Hi! There's a typo in your code:
*'post_type'=> 'produtcs'*
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
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
M.
More information about the wp-hackers
mailing list