[wp-trac] [WordPress Trac] #14478: Allow explicit ordering of included posts in query_posts

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 30 19:35:31 UTC 2010


#14478: Allow explicit ordering of included posts in query_posts
--------------------------+-------------------------------------------------
 Reporter:  daltonrooney  |       Owner:                 
     Type:  enhancement   |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 This is in reference to ticket #9819

 I think it would be useful to add an extra orderby value to query_posts
 that could return posts based on the order they are listed.

 So when you do query_posts("include=3,2,5,4,1&orderby=given")

 They should be returned in the order 3,2,5,4,1

 As mentioned by @dd32 in the previously referenced ticket, orderby=none
 returns the posts in MySQL Natural order, which is by ID.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14478>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list