[wp-trac] [WordPress Trac] #12891: Advanced multi-taxonomy WP_Query()s

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 19 22:53:38 UTC 2010


#12891: Advanced multi-taxonomy WP_Query()s
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |       Owner:  markjaquith    
     Type:  task (blessed)  |      Status:  assigned       
 Priority:  normal          |   Milestone:  3.1            
Component:  Query           |     Version:  3.0.1          
 Severity:  normal          |    Keywords:  ongoing-project
----------------------------+-----------------------------------------------

Comment(by ryan):

 {{{
 'tax_query' => array( array( 'taxonomy' => 'category', 'terms' =>
 array(1),
                                         'operator' => 'IN', 'field' =>
 'term_id', 'include_children' => false ) ),
 }}}

 A shortcut for excluding children from a simple single taxonomy query
 would be nice.  And maybe if the tax_query has only one query in it we can
 forego requiring the outer array().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12891#comment:150>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list