Split a Custom Menu into parent and child menus (5 posts)

  1. indyjoey
    Posted 4 years ago #


    I am looking for help, tutorial or documentation on how to split a single custom menu (resources > menus) into a two-tier menu system. From what I have found and tried requires to use wp_list_pages. This defeats the purpose when using the wp_nav_menu option?

    I would like to be able to use a custom menu as a top level horizontal menu and then have a vertical child menu that displays only pages of the selected parent. I am also needing teh child menus to drill down (expand/collapse) the deeper you go.

    Horizontal Parent Menu:

    About | Services | Docs | Partners

    Vertical Child Menu:


    • Child Page 1
    • Child Page 2
      • Sub Child 1 (current page)
      • Sub Child 2
    • Child Page 3

    Any help or direction would be much appreciated.

  2. rmassart
    Posted 4 years ago #


    I am just wondering the exact same thing. Is there a way of achieving this with wp_nav_menu?


  3. indyjoey
    Posted 4 years ago #

    FYI... I had no luck getting an answer/direction on this. I ended up using the wp_list_pages and a 3rd party add-on for the second tier (Dynamic Subpages).

    I am still very much interested in seeing how that can be done with the newer wp_nav_menu menu.

  4. rmassart
    Posted 4 years ago #

    Thanks indyjoe.

    Ooops, I just read the rules of the forum. Apologies for the bump. Won't happen again.

  5. mali303
    Posted 3 years ago #

    It can be done using custom walker object, Try this solution:


Topic Closed

This topic has been closed to new replies.

About this Topic