WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Howto use wp_nav_menu ? (3 posts)

  1. mpepito13
    Member
    Posted 4 years ago #

    Hello,

    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 :

    • MENU1
      • submenu1.1
      • submenu1.2
    • MENU2
      • submenu2.1
      • submenu2.2

    I have activated it in the functions.php : add_theme_support( 'nav-menus' );

    I then put <?php wp_nav_menu(); ?> in my header.php.

    So far I just have :

    • submenu1.1
    • submenu1.2

    How to use this function ?

    Best regards,
    arnaud.

  2. I have never used wp_nav_menu myself, but this may help:

    http://codex.wordpress.org/Function_Reference/wp_nav_menu

  3. mpepito13
    Member
    Posted 4 years ago #

    Ok it seems that this function only return the requested menu.

    If any menu are requested, it returns the first one having submenu items.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic