[wp-hackers] query_posts tag parameters

John Blackbourn johnbillion+wp at gmail.com
Mon Sep 21 01:55:14 UTC 2009


I think you may have to use either the tag slug (so 'mariage' instead
of 'Marriage') or the tag ID (eg. 3). Haven't got an install handy to
double check though.

John.

2009/9/21 Jason <jason at findingsimple.com>:
> Hi All
>
> I am trying to do a basic tag query using the following tag parameters
>
> query_posts(array('tag__in' => array('Marriage') ) );
> query_posts(array('tag__and' => array('Marriage') ) );
> query_posts(array('tag__not_in' => array('Marriage') ) );
>
> But they don't appear to be working - this is the first time I've tried to
> use them so wanted to check:
> a) If i doing it properly; and if so
> b) If this is a known problem or if it is just me?
>
> query_posts('tag=xxx'); appears to be working so I am stumped.
>
> Using MU latest version.
>
> Thanks in advance.
> Jason
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list