Dynamically nav menus with wp_nav_menu ?
-
Hi,
I try to solve an issue with navigation.
Previously, if I had for example a page with subpages, or category with subcategories, I could just usewp_list_pages
orwp_list_categories
with some parameters to dynamically display sub pages/cats for every one of the pages/posts viewed.I want to achieve the following dynamic situation:
There is a nav menu that should be displayed dynamically. I want to use the newwp_nav_menu
function.
Each parent page has some children/sub pages to be displayed in the nav menu, and also a different category archive link that should be displayed in that same menu for every different parent page that viewed.Obviously, there is no point to manually create each menu and menu for each parent page.
How could that be dynamically accomplished with the new
wp_nav_menu
function?Thanks,
Maor
- The topic ‘Dynamically nav menus with wp_nav_menu ?’ is closed to new replies.