[wp-trac] [WordPress Trac] #16329: Sorting query_posts posts by the order of id's given in post__in

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 21 14:31:17 UTC 2011


#16329: Sorting query_posts posts by the order of id's given in post__in
--------------------------+------------------------
 Reporter:  danielpataki  |       Owner:
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  3.1
 Severity:  minor         |  Resolution:  duplicate
 Keywords:  orderby       |
--------------------------+------------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Sorting the IDs in PHP is definitely not going to scale. I suggest you
 look at using UNIONs instead.

 As for sorting using {{{post__in}}}, this has been asked before: #13729

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


More information about the wp-trac mailing list