foreach loop still echoes array

OK, so this is what I did wrong. This was an array within an array, which meant that I had to use the element index to echo the values. I’m not even sure I’m explaining it right, but thanks for your help all. It’s working now.

wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu

Please use below code in your theme funcation.php file function my_asc_nav_menu($menu, $args) { if (isset($args->reverse) && $args->reverse) { return array_reverse($menu); } return $menu; } add_filter(‘wp_nav_menu_objects’, ‘my_asc_nav_menu’, 10, 2); And also use your wp_nav_menu function as below: wp_nav_menu(array( ‘theme_location’ => ‘primary’, ‘container’ => ‘ul’, ‘menu_class’=> ‘top-menu’, ‘reverse’ => FALSE, ) );