[wp-hackers] Query Taxonomy in Pages
scribu at gmail.com
Mon Aug 9 18:52:47 UTC 2010
On Mon, Aug 9, 2010 at 9:38 PM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> On Mon, Aug 9, 2010 at 7:23 PM, Eric Mann <eric at eamann.com> wrote:
> > Just a hunch, but I'd try:
> > 'page-tags__in' => array()
> > using the ids of the tags, not the slug ... based on the documentation
> > http://codex.wordpress.org/Template_Tags/query_posts#Tag_Parameters
> I'm fairly sure we don't have advanced custom taxonomy queries yet,
> like term__in and term__not_in. The code required is a bit scary so I
> don't think anyone's tackled it yet.
Indeed. See http://core.trac.wordpress.org/ticket/9951
In the mean time, you can use the Query Multiple
to make this work:
'page-tags' => "basic-tag,2nd-tag"
Note that those are term slugs, not names.
More information about the wp-hackers