• $args = array('post_type'=>'myType','numberposts'=>-1,'meta_key'=>'featured','meta_value'=>'true','orderby'=>'menu_order','order'=>'ASC');
    foreach(get_posts($args) as $item){}

    While using this code my “orderby” parameter has no effect.
    I’ve tried looking around the forums but can’t see anything exactly the same: some things here and there are similar, but nothing precisely the same.

    Thanks for the assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong order for get_posts using custom type’ is closed to new replies.