• Resolved jovern

    (@jovern)


    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://www.ads-software.com/plugins/foodlist/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Denis V (Artprima)

    (@v-media)

    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://www.ads-software.com/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

    (@jovern)

    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.