[wp-trac] [WordPress Trac] #14645: Support for multiple meta_key => meta_value pairs in WP_Query

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 4 17:49:51 UTC 2010


#14645: Support for multiple meta_key => meta_value pairs in WP_Query
-------------------------+--------------------------------------------------
 Reporter:  joehoyle     |        Owner:  scribu  
     Type:  enhancement  |       Status:  accepted
 Priority:  normal       |    Milestone:  3.1     
Component:  Query        |      Version:          
 Severity:  normal       |   Resolution:          
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------

Comment(by aaroncampbell):

 Replying to [comment:22 scribu]:

 It just seemed a little messy.  I wouldn't have noticed except that I was
 debugging to find out why my query wasn't working.  Still, it was really
 easy to fix by just removing `meta_key` and `meta_value` from the array in
 `fill_query_vars()`.

 The main thing that's still missing is the ability to order your query
 based on the meta keys.  I'm guessing we need to adjust `_wp_meta_sql()`
 to return join, where, and order_by.

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


More information about the wp-trac mailing list