Get and display parent pages of a menu.
-
I have a horizontal dropdown menu on top, with 4 custom links as parent menu items and some child pages underneath one of each.
In the side-bar I want to show the user (because the main horizontal menu is a dropdown menu) a second navigation list with on top the title of the current (one of the four) main parent menu items and underneath all the child pages of that specific parent menu item.
With wp_list_pages() it was pretty easy but I have no clue of fixing this thing with the new wp_nav_menu().
I used this link to get me started about making a custom walker.
https://www.kriesi.at/archives/improve-your-wordpress-navigation-menu-outputBut I have no idea to move further.
Anybody some ideas or experience with this issue?
Thanks!
Marco
- The topic ‘Get and display parent pages of a menu.’ is closed to new replies.