wp_nav_menu children subnavigation on page
-
Hey Folks!
I’ve been using wp_list_pages to display the current page’s childpages in the sidebar.
It works great for pages that only have other pages as a child, but for our new project i need a different solution.Our main navigation mostly consists of pages, but there’re also post categories and custom post type items.
Let’s say there’s a parent page called “about”, it’s child pages are three normal pages and one post category, all assembled in the theme’s menu settings page.If i’m using wp_list_pages now, i only get the three child pages of the parent, not the category.
I need a way to read the active wp_nav_menu parent and display it’s child items, whether pages or categories.I have no clue if this is possible, help would be much appreciated.
Thanks!
- The topic ‘wp_nav_menu children subnavigation on page’ is closed to new replies.