• I found that the following part in the walker edit file is not saving.

    <input class=”menu-item-data-position” type=”hidden” name=”menu-item-position[<?php echo $item_id; ?>]” value=”<?php echo esc_attr( $item->menu_order ); ?>” />

    Among all the other menu option variables, only ‘$item->menu_order’ does not change after saving but the others do.

    I ran ‘jQuery(‘#menu-item-6982 .menu-item-data-position’).val()’ in Chrome console, then I got always the number ‘1’. So the menu item(menu-item-6982)’s order (position) have not ever saved and it’s always on the top of the menu editor(Appearance -> Menus).

    Why is not JUST this option var saved? And how could I save it?

The topic ‘menu order not saving – specific’ is closed to new replies.