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

WordPress Trac noreply at wordpress.org
Thu Aug 8 04:27:45 UTC 2013


#14478: Allow explicit ordering of included posts in query_posts
--------------------------+----------------------
 Reporter:  daltonrooney  |       Owner:
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |
--------------------------+----------------------
Changes (by wonderboymusic):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Future Release =>


Comment:

 you can now order by `'post__in'` which does ordering using `FIELD`

 {{{
 get_posts( array( 'post__in' => array( 1, 2, 3 ), 'orderby' => 'post__in'
 ) )
 }}}

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


More information about the wp-trac mailing list