[wp-trac] [WordPress Trac] #13729: Post Query should be able to order by specific order passed in "post__in"

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 19 14:12:59 UTC 2010


#13729: Post Query should be able to order by specific order passed in "post__in"
-------------------------+--------------------------------------------------
 Reporter:  jakemgold    |       Owner:  ryan          
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:  3.0           
 Severity:  minor        |    Keywords:  2nd-opinion   
-------------------------+--------------------------------------------------

Comment(by jakemgold):

 Nacin - I don't understand your feedback.

 You don't need to change the default behavior of "in". I would simply
 recommend adding a new "orderby" option that - under the right
 circumstances - allows the user to retrieve the posts in the specified
 order. My plugin adds a "post in" orderby option, but you could probably
 use a more friendly value like "specified".

 "not_in" is irrelevant, since your can't "order" excluded posts.

 This could be done with two new lines of code in the orderby case
 statement, and would not break anything (a patch I'll be happy to submit).

 It's hard for me to imagine WordPress evolving as a full featured CMS
 without the ability to retrieve a list of posts in a specifically desired
 order.

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


More information about the wp-trac mailing list