You can use get_nav_menu_locations
and wp_get_nav_menu_items
to get your menu items.
$locations = get_nav_menu_locations();
$nav_items = wp_get_nav_menu_items($locations['your-menu-slug']);
You can then process $nav_items
to display your page content. It can get complicated but it does work.
Related Posts:
- Auto add pages to primary menu with functions.php
- Programmatically add existing pages and subpages to Appearance Menu
- two different separate sections on the same site
- Does is_child() exist in wp 3.5.1?
- wp_list_pages Hierarchical Help
- How can I order these pages in this navigation bar on this old wordpress theme?
- Unable to remove page from primary menu
- How to add class and span to
- how can i get the page_ID in nav li [closed]
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- Show current navigation path from menu
- How to highlight the right item in the navbar
- Add class to active top level (grandparent) menu item
- How to get Menu Navigation Labels to output HTML
- custom menu not found
- wp_nav_menu doesn’t generate parent/ancestor classes
- How to add text before WordPress menu item href
- Add an extra field to the navigation menu box?
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Does the menu item ID ever change?
- Hide and show menu subpages
- How to add a parameter to links in the nav menu?
- Benefits of using Nav Walker?
- Use walker for specific menu, or avoid use of walker
- Change where navigation bar links?
- wp_list_pages sort order is different for different languages [closed]
- Page-Linking Structure
- has_children in custom nav_walker
- wp_list_pages: only show subpages on the parent page?
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- How to fix “Supplied nav_menu_item value missing property” after update to WordPress 5.0
- Set if condition with wp_nav_menu
- wp_nav_menu including Skype URL
- How to have two menus using Bootstrap nav walker?
- Link to Homepage in Menu
- Change an li class name in a wordpress custom menu walker
- Separator for custom nav menu
- How do I add recent posts to the menu?
- Conditional secondary menus
- Making a navigation header menu with bulma, need some advice
- How to retrieve parent menu item name of current submenu item
- Determine the last child of the parent menu WP Nav Walker
- Nav and logo loading each time causing menu to move JointsWP – Foundation 6
- Navigation doesn’t render when wp is hosted
- Create custom page and add it in nav menu by code
- Using _s theme, menu changes do not affect header menu
- Add span in top menu item with nested itens
- Show children (sub-navigation) of active menu item only
- Menu Arrow for Child Element
- Adding an external link to wordpress menu
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- confused about wp_list_pages() function – how to display selected top pages with all their subpages
- Add a counter beside menu item label
- wp_nav_menu() | Outputting my own custom code using built in features
- Add (grand)child pages automatically to nav menu
- Twenty Fifteen: Change navigation menu behavior
- Switch an entire nav menu if user is logged in
- WordPress functions.php does not affect the theme menus
- Display Menu Navigation Label
- Menu is not displaying on the site navigation [closed]
- Odd spacing in Navigation Bar [closed]
- How to avoid the and which added when custon menu widget is used
- Wp Nav Menu div containers
- Costum walker with sub menu item count
- Catagorized hierarchy menu for PAGES!
- Updated WordPress, now Navigation is Messed Up
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Possible to append class to nav menu added to widget area?
- Page dependent sub-menu?
- need help in wordpress navbar setup
- adding pages in underscores.me theme
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Multi-Level Nav Bar
- Add CSS Class to WordPress Menu Item Dependent on the Page the User is Visiting
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- Change markup for just 2nd list element in custom Walker menu
- Additional CSS for the nav menu
- display cart information within li of cart menu item
- Add data-track to links in menu
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Add newsletter signup element to navigation bar
- Check in walker if current page is descendant
- Specific Page that convert Hyperlink to anchor in nav menu
- wp_nav_menu not selecting teh correct menu
- Active page link not getting class assigned
- Highlighting Main Navigation Menu With Two or More Class Matches
- Customize Walker_nav_menu to show posts if item is category
- Menu not always using correct link
- Where these arguments are defined?
- Remove from wp_nav_menu() wordpress
- Add custom ID to wp_nav_menu list items
- Show All Children of WordPress Menu
- How to make an anchored page in a navigation menu tab
- Creating an accordion style menu
- Two Homes In Navigation Menu
- How to set menu Display location