Support » Theme: Restaurateur » Change the order of the menu items

  • shyne23

    (@shyne23)


    is it possible to change the order of the categories “cat id” instead of alphabetical.?

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

    (@will7914)

    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.