Hot answers tagged

1

Modified version of above with recursive loops. Add To Functions.php function wp_get_menu_array($current_menu='Main Menu') { $menu_array = wp_get_nav_menu_items($current_menu); $menu = array(); function populate_children($menu_array, $menu_item) { $children = array(); if (!empty($menu_array)){ foreach ($...


Only top voted, non community-wiki answers of a minimum length are eligible