Support » Alpha/Beta/RC » Howto use wp_nav_menu ?
6 years, 8 months ago
I am trying to use the wp_nav_menu for a new theme but can’t get a clue on how it works.
My menu should be something like :
I have activated it in the functions.php : add_theme_support( 'nav-menus' );
add_theme_support( 'nav-menus' );
I then put <?php wp_nav_menu(); ?> in my header.php.
<?php wp_nav_menu(); ?>
So far I just have :
How to use this function ?
I have never used wp_nav_menu myself, but this may help:
Ok it seems that this function only return the requested menu.
If any menu are requested, it returns the first one having submenu items.