How is custom menu hierarchy output handled?
Each nav menu item is stored a post type named nav_menu_item. The horizontal position is stored in the column menu_order The vertical position (hierarchy) is stored as post meta field named _menu_item_menu_item_parent holding the parent nav_menu_item ID. To create nested lists WordPress looks for _menu_item_menu_item_parent on each item, and if there is an item with … Read more