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

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 7 21:54:18 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:  taxonomies has-patch
----------------------------+-----------------------------------------------

Comment(by scribu):

 Done. Advanced query example updated:

 {{{
 get_posts( array(
   'post_type' => 'event',
   'tax_query' => array(
     array(
       'taxonomy' => 'location',
       'terms' => array( 'everywhere' )
     ),
     array(
       'taxonomy' => 'location',
       'terms' => array( 'there' ),
       'operator' => 'NOT IN'
     ),
   )
 ) );
 }}}

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


More information about the wp-trac mailing list