I would say mostly you see the usage of wp_nav_menu(), which does use wp_get_nav_menu_items(). You can use wp_nav_menu() with the default walker or a custom walker.
To be honest I can’t remember the time I did a menu manually, with wp_get_nav_menu_items() or something else, and I tend to be lazy, so this is definitely more work.
The Walker Class gives you a lot of possibilities as there is more information available, which definitely is big plus. So whether you should leverage a walker – or otherwise (I’d say) use wp_nav_menu() – is pretty much a question of what you need to achieve, for more complex menus I personally would always go with a walker. Last but not least, walkers are nicely reusable, which is pretty neat and another plus.
Related Posts:
- Split up wp_nav_menu with custom walker
- Call custom field into menu item
- add span class inside wp_nav_menu link anchor tag
- Determine if a navigation item has children
- Add Page ID class to nav menu items
- Bar separated navigation by extending Walker_Nav_Menu
- Bar separated navigation by extending Walker_Page
- Custom Nav Walker sub-menu HTML construct
- `start_el` depth argument in custom nav walker always evaluates to zero
- Use walker for specific menu, or avoid use of walker
- How to display dynamic content in start_lvl function
- Add custom text to menu
- has_children in custom nav_walker
- Adding post excerpt into navigation menu
- Use wp_nav_menu to display ALL pages
- Third level navigation class
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- add span class and i tag inside wp_nav_menu link anchor tag
- Change an li class name in a wordpress custom menu walker
- Add within the output of
- Is this format possible with a custom Nav Walker class?
- walker – 0 level on submenu formatting
- Determine the last child of the parent menu WP Nav Walker
- Navigation doesn’t render when wp is hosted
- How do you add a around the second level of a Menu?
- Help with walker for nav
- How to remove dropdown from wp_nav_menu
- How Do I Add Images To Main Navigation Menu
- Walker menu not displaying at all
- Show children (sub-navigation) of active menu item only
- Adding a unique ID to each sub-menu
- Remove a class from a using Walker
- How to Add support for sub-menu item description in wordpress?
- wp_list_pages Hierarchical Help
- changing the labels inside appearance -> menus for some for the fields
- Costum walker with sub menu item count
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Help with WordPress Custom Nav Walker
- Why is my navigation in my onepage not working?
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- What is inside in $item in start_el function in Walker_Nav_Menu class
- Multi-Level Nav Bar
- Adding additional html to the end of the root level in a custom nav walker
- Change markup for just 2nd list element in custom Walker menu
- Where to place a svg chevron down in my custom walker?
- Add active class to wp_nav_menu
- Output existing wp_nav_menu with a custom walker
- how to split vertical menu into two columns using walker nav menu
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Creating custom Menu for custom theme
- Check in walker if current page is descendant
- Can’t add optional class to menu item when using Walker_Nav_Menu
- Add dynamic content block to nav section generated by custom walker
- Customize Walker_nav_menu to show posts if item is category
- Determine if a navigation item has children
- Walker for menus
- how to make a walker to this (in bootstrap, i try but not work)
- how can i get the page_ID in nav li [closed]
- Custom navigation / menu output (walker?)
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- WordPress Menu Custom Walker Class
- Output the aria-labelledby parameter for a nav menu child
- How to remove trailing tags from wp_nav_menu walker
- Make compatible custom menu widget for Twitter Bootstrap
- Menu styling for last menu item
- How to add a tag to wp_nav_menu in a child theme
- get_query_var(‘post_type’) not returning in a filter
- Navigation Menus Depth for specific menus
- How to Overwrite/Customize wp-admin/nav-menus.php in WordPress
- wp_list_pages() but only show children on the branch you are on
- WordPress Menu Walker: add #hashes to child page links (only)
- WordPress Walker – Group two items?
- Hide menu from homepage
- How to add a element with walker menu right after begin of the navigation tags?
- WordPress Nav Walker – Top menu link with dropdown link not clickable (dropdown opens)
- Add custom class to li element which has children
- Output Post ID for all nav_items
- Custom ul class
- Walker_Nav_Menu creating too many closing tags?
- How to create menu spread over four lines including images
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- Sub-Items Not Visible in Navigation
- Custom menu with Walker class – what should the $db_fields be?
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- wp_nav_menu() reutrns HTTPS?
- Update nav menu item position programmatically
- Navigational error
- wp_nav_menu – Collapse with PHP
- custom walker to add iconfont to wp_nav_menu
- Display Username as parent menu item
- How to add or remove borders in navigation menu?
- How do I programatically remove Menus?
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress
- Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size
- Header not showing in new pages