WordPress Navigation default output
wp_nav_menu is what you are looking for. Here are some examples. Using the depth parameter you can change the level of sub-menu. 0 leads to all levels. Ex. <?php $defaults = array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => … Read more