Forums

multiple menus (wp_nav_menu) (2 posts)

  1. tjobbe
    Member
    Posted 1 year ago #

    Hi guys,

    I have my main navigation which has a selection of sub pages and stuff.

    I have a secondary navigation which I want to display depending on which page you are on.

    The idea is that I have created say, five different wp_nav_menu's and if page X is the current page, I want menu x to show in the sidebar.

    Hope this makes sense, can anyone point me in the right direction?

    Creating the menu isn't a problem, and it looks like there is a conditional statement at the bottom of http://codex.wordpress.org/Function_Reference/wp_nav_menu which I can "butcher" to my needs!

    My question is:

    How do I only show the top level nav on all pages, and then show the sub nav's or the custom wp_nav_menu's on the pages I choose, as well as having one generic one for all other pages?

  2. vaseemansari
    Member
    Posted 1 year ago #

    I am also looking for the same solution, i am using 6 parent menu and showing them in header at http://showprojects.net/projects/csrc/
    And i want when user clicks on sub menu then the left sidebar will show the sub menu items of parent menu.
    My Personal website is
    http://www.vaseemansari.com/blog/

Topic Closed

This topic has been closed to new replies.

About this Topic