[wp-hackers] query_posts with taxonomy
rafaehlers at gmail.com
Thu Mar 24 14:54:35 UTC 2011
Thanks man! Banging my head for hours on this, read Codex, Google, anything
and nothing working, damn!
On Thu, Mar 24, 2011 at 11:47 AM, Molnár Márton <molnar.marton at gmail.com>wrote:
> 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>
> > 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
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers