[wp-trac] [WordPress Trac] #10576: Use subqueries for taxonomy queries

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 10 23:19:20 UTC 2009


#10576: Use subqueries for taxonomy queries
----------------------------+-----------------------------------------------
 Reporter:  ryan            |       Owner:  filosofo
     Type:  task (blessed)  |      Status:  new     
 Priority:  normal          |   Milestone:  2.9     
Component:  Taxonomy        |     Version:          
 Severity:  normal          |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by dd32):

 What about multiple-taxonomy querying Denis?

 Or is that as easy as?
 {{{
 AND (
 tag_tax.term_id IN ( '$tag_ids' )  AND tag_tax.taxonomy = 'tag'
 OR
 tag_tax.term_id IN ( '$cat_ids' )  AND tag_tax.taxonomy = 'cat'
 )
 }}}

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


More information about the wp-trac mailing list