[wp-trac] Re: [WordPress Trac] #7431: Allow posts to be ordered by meta_key

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 31 16:44:41 GMT 2008


#7431: Allow posts to be ordered by meta_key
-------------------------------------+--------------------------------------
 Reporter:  AaronCampbell            |        Owner:  anonymous
     Type:  defect                   |       Status:  new      
 Priority:  high                     |    Milestone:  2.7      
Component:  General                  |      Version:           
 Severity:  normal                   |   Resolution:           
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by AaronCampbell):

 mdawaffe: True.  I'd have to hook into that, store the user's request
 ($q), then hook into posts_orderby, use the data I got from the previous
 hook, then expunge the data so I don't accidentally use it on another
 request.  It's doable.  Thanks (I had missed the pre_get_posts hook)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7431#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list