[wp-trac] [WordPress Trac] #15388: get_posts does not order by menu_order

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 13 08:36:59 UTC 2011


#15388: get_posts does not order by menu_order
------------------------------------------+------------------------------
 Reporter:  ggus                          |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Query                         |     Version:  3.0.1
 Severity:  normal                        |  Resolution:
 Keywords:  menu_order get_posts orderby  |
------------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:15388 ggus]:
 > {{{
 >
 get_posts('post_type=whatever&post_parent='.$post->ID.'$orderby=menu_order&order=ASC')
 > }}}
 Shouldn't it be `&orderby=menu_order` instead of `$orderby=menu_order`?

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


More information about the wp-trac mailing list