WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I simply want a second menu in my sidebar to show on all pages. My theme only supports one custom menu though. I am using the first custom menu for the top level nav, and I wanted my 2nd custom menu in the sidebar. I created a second menu and tried adding it using the custom menu widget, however this just adds my first menu, I'm guessing because the theme only supports one menu.

share|improve this question
up vote 1 down vote accepted

Search for the code give here in your themes functions.php file. and register second nave menu as show here.

register_nav_menus( array(
    'primary-nav' => "Primary Menu", // file may have this with different name
    'sidebar-nav' => "Sidebar Menu"   //add this line
) );

Use custom menu widget to show it up in sidebar. OR If you want to edit the theme template, then put following code where you want the second menu to appear put follwoing code

wp_nav_menu( array(
    'theme_location' => 'sidebar-nav'
) );

Now you can got to Menu Appearance Screen to assign items to it.

share|improve this answer

on your sidebar, if your theme supports widgets, you can add a custom menu widget and use that to load your secondary menu.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.