wp_nav_menu displays the menu created in the Appearences > Menu section of wordpress admin area. That is where you can “print the menu with correct children names”.
Unless there is some other code in your functions that is messing with the wp_nav_menu function.
Related Posts:
- How to display conditional-content if wp_nav_menu( $args ) retruns something
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- get_the_title() gets printed out twice
- How to use wp_nav_menu to create custom dropdown menu?
- Show login greeting above sub-menu links?
- Remove submenu item from list
- Get Child of Child Pages in custom Menu
- Display specific main Sub Nav on Woocommerce product pages
- Beyond widget side menu editing, with the php page, custom template
- How I can add div to menu?
- Can’t remove menu items added by plugin
- Submenu opened problem
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- How to change menu order item
- Custom Menus: dynamic highlighting problem with custom home link
- Add item to top of menu using a filter in functions.php
- Adding PHP in the menu
- Two menus show up
- Register a menu – Error Header
- How to style one item from main navigation?
- Show About and Contact Us page when they’re clicked in the top menu.
- New walker for walker_nav_menu to change inside container data
- Add data-id attribute to child page links
- Parsing Menu Items and Blog Posts
- Add login hyperlink to secondary navigation menu
- Automatically add images to a menu
- Add value to new attribute inside WordPress menu items
- wp_nav_menu not working correctly in my underscores theme
- Menu Items fail to save correctly, cause reset of related page metadata
- Dropdown menu for categories
- Menu Custom Data Attributes
- How to display different submenus?
- Get the name of menu item with wp_nav_menu
- Notice: Trying to get property of non-object
- How to modify mobile nav menu text in theme
- Get parents child pages
- Output only links using wp_nav_menu()
- Get css class of menu item in custom menu structure
- How to add aria role and schema markup to custom walker container
- How can I use custom menus with a Bootstrap WordPress theme?
- Nav menu from plugin to theme
- Adding Additional Variables on Menus Page
- Extend Menu Walker Output
- Nav-Menu not showing up
- Custom navigation menu with awsAccordion
- how to add a div inside wp_page_menu
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Why can’t I add a custom image in my navigation?
- conditional: if is page, and all subpages
- wp nav menu: show submenu below li item
- How to tell if a user has gone in and created a menu
- Dynamic Menu drops pages?
- Class for Selected Menu using wp_nav_menu
- Remove the Tag from wp_nav_menu
- Menu not styling. New menus functionality giving me a headache
- Styling an “active” link outside of WordPress default menu
- How to create Loop code for Menu using WordPress?
- Hard-coding a shortcode as the last menu item in primary navigation?
- Dynamic menu with custom post types
- Add class to ul and li in wp_na
- Nav Walker that shows only children and siblings of top level parent menu item
- how to changes mobile menu toggle breakpoint in WordPress
- How to display already created menus via php?
- Adding an Anchor Link to a wordpress menu using WPBakery Page Builder
- Providin exception to WordPress wp_nav_menu Custom CSS Classes
- Adding markup to sub menu based on class
- Featured image in menu wordpres
- How to make only the valid active page of a multilevel menu active with – “.nav li.current-menu-item a”?
- Replace jQuery with PHP or CSS for Customized WordPress wp_nav_menu
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- How to set Nav as a default menu in wordpress
- How to put 2 php codes in functions.php without site crashing
- Menu not updating for logged in users after redirect
- wp_get_nav_menu_items() with ACF
- How to switch between two primary menus (programatically0
- How to let mobile navigation menu close when link is clicked?
- Redirect User when they click Menu Option
- Used a code to revoke some dashboard menus for my contributors but for some reason it’s revoked me access to the editor [closed]
- How to give custom roles the capability to edit one Menu instead of every Menu
- Primary navigation menu with timed items from custom post type
- PHP warning with code for nav menu walker [duplicate]
- Add element after navigation element title don’t works like I expect
- How to disable sub menu items from being created?
- String replace for Login/Logout concatenation problem in menu
- Bring Font Awesome icons inside menu A tags
- Difference between “Walker_Nav_menu” and “walker”
- Add parent menu item in sub-menu in custom nav_walker
- How to create a sub-page of sub-page?
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Vertical Menu for one page only
- PHP drop down menu for my get_category child of
- Role exception for a settings sub menu
- Widget Logic – display on page and all child
- How limit the width of a fixed menu-bar on scroll?
- Pulling a variable into the wp_nav_menu function
- How to list categories by page id in wordpress
- Adding button to wordpress menu
- Editing existing pre-created menus in PHP
- Two theme locations for two menus, but only one is showing up