WordPress.org

Support

Support » Themes and Templates » Change the order of the menu items

Change the order of the menu items

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello. I found how to do that.

    1) In back office, when you create your menu categories, in the “id” part, set a number, for example : “0-dessert”, “1-starters”, “2-drinks”

    2) In menu-items-template.php and menu-items-template-full.php, line 19, replace

    $terms = get_terms('menu_item_category');

    by

    $terms = get_terms('menu_item_category', array (
                            'orderby' => 'slug'
                        ));

    Thanks a lot!

    I will test it today.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the order of the menu items’ is closed to new replies.