Title: Sorting the menu items
Last modified: August 30, 2016

---

# Sorting the menu items

 *  Resolved [jovern](https://wordpress.org/support/users/jovern/)
 * (@jovern)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sorting-the-menu-items/)
 * Hello there,
 * I am having trouble trying to arrange the order of menu-items. i arrange the 
   menu items to the way i want using the plugin’s Section Manager but it is not
   showing in that order.
 * i noticed this field “[flmenu_item id=”xxx”]” tagged to every menu item that 
   affects the order menu item are displayed.
 * How do i edit flmenu_item id? or is there a way to sort the way i want the items
   to be displayed.
 * query used below:
    $wp_query->query( array( ‘post__in’ => $menuItemIds, ‘post_type’
   => ‘fl-menu-item’, ‘posts_per_page’ => 6, ‘paged’ => $paged, ) );
 * [https://wordpress.org/plugins/foodlist/](https://wordpress.org/plugins/foodlist/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Denis V (Artprima)](https://wordpress.org/support/users/v-media/)
 * (@v-media)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sorting-the-menu-items/#post-6517324)
 * The way how Section Manager sorts the items does not affect the wp_query, there
   is a different concept used there. To make wp_query work the way you want, you
   may try using this plugin: [https://wordpress.org/plugins/post-types-order/](https://wordpress.org/plugins/post-types-order/)
 * If you want to use the Section Manager’s order, then you should use `get_post_meta(
   $id, '_fl_menu_items_order', true)` where $id is a Section id. For more details
   check `Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\
   MenuItemsShortcode::apply()` function.
 *  Thread Starter [jovern](https://wordpress.org/support/users/jovern/)
 * (@jovern)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sorting-the-menu-items/#post-6517379)
 * Hi Denis,
 * I first try using the get_post_meta but I got lost along the way & couldn’t solve
   my problem… Somehow section manager order is not reflected.
 * Then i tried using the plugin you mentioned (post-types-order) and i am amazed
   at the things it can do. My pagination continue to work. my foodlist menu is 
   still working.
 * thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sorting the menu items’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/foodlist_a44e3b.svg)
 * [Foodlist](https://wordpress.org/plugins/foodlist/)
 * [Support Threads](https://wordpress.org/support/plugin/foodlist/)
 * [Active Topics](https://wordpress.org/support/plugin/foodlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foodlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foodlist/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jovern](https://wordpress.org/support/users/jovern/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/sorting-the-menu-items/#post-6517379)
 * Status: resolved