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

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 23 18:43:44 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):

 {{{
 WP_Query('posts_per_page=15&cat=-21072,-37613,-4533907');
 }}}

 Produced:

 {{{
 SELECT SQL_CALC_FOUND_ROWS wp_trunk_posts.* FROM wp_trunk_posts WHERE 1=1
 AND ( ) AND wp_trunk_posts.post_type = 'post' AND
 (wp_trunk_posts.post_status = 'publish' OR wp_trunk_posts.post_status =
 'private') GROUP BY wp_trunk_posts.ID ORDER BY wp_trunk_posts.post_date
 DESC LIMIT 0, 15
 }}}

 None of those exclude categories exist.

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


More information about the wp-trac mailing list