WordPress.org

Ready to get started?Download WordPress

Forums

How do I create several menus ? (2 posts)

  1. Fran6
    Member
    Posted 4 years ago #

    Hi,

    I would like to create a theme for WP 3.0 with 2 navigation menus. I know now how to create them in the admin but I can't figure out how to implement them in the theme... I know I must use wp_nav_menu function but how can I differenciate the different nav menus ?

    Thanks for your help

    Francis

  2. MichaelH
    Member
    Posted 4 years ago #

    Use the menu argument

    <?php wp_nav_menu( array( 'menu' => 'My 2nd Menu','sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic