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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 7 05:53:41 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 markjaquith):

 Scribu, I'd really like to be able to determine the operator between
 taxonomies, and be able to group terms. Is there something about my
 proposed syntax that you objected to?

 As two minor enhancements, I'd take your advice about id/slug and make
 explicit wrappers. {{{wp_tax_id()}}}, {{{wp_tax_slug()}}} and their "not"
 counterparts. I'd also introduce specification of hierarchy handling, for
 hierarchical taxonomies. Maybe {{{_but_no_children}}} suffixes to avoid
 the default behavior of querying for all children.

 filosofo's suggestion of something like FQL (WPQL?) has appeal. You could
 do all of things I want to do, with that. You might need something to say
 "_but_no_children" for hierarchical taxonomies, but otherwise, it
 translates well to a simplified SQL-like language. I'm just not sure we're
 ready for that — it's a big step.

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


More information about the wp-trac mailing list