If you’re using the WordPress menu system in the admin interface, then you could simply add the Parent Menu Item 2 to the menu again and place it as a child element under the parent version of it. I don’t see any need to even extend the WordPress Walker_Nav_Menu.
Related Posts:
- Split up wp_nav_menu with custom walker
- Custom Nav walker display current menu item children, or siblings on no children
- Add a custom walker to a menu created in a widget
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- WordPress Menu Custom Walker Class
- add span class inside wp_nav_menu link anchor tag
- Determine if a navigation item has children
- Custom Nav Walker menu – Display children count
- Using string instead of object class instantiation on the walker argument breaks wp_nav_menu
- Adding attributes to link in wp_nav_menu using custom Walker function
- Walker_Nav_Menu: put custom code between a particular
- Show top-level parent with submenu menu walker
- Adding a class (arrows) to main menu links that have children?
- Custom nav walker with different output depending on depth
- Adding html elements to wp nav menu
- Bar separated navigation by extending Walker_Nav_Menu
- Bar separated navigation by extending Walker_Page
- Output the aria-labelledby parameter for a nav menu child
- Custom Nav Walker sub-menu HTML construct
- Customizing a walker menu class
- Add div to specific sub-menu
- How to add ID and class in nav menu walker?
- wp_nav_menu custom walker – child items
- How to remove trailing tags from wp_nav_menu walker
- How to add parent element’s title to nav menu’s child?
- Custom Walker anchor tag not inheriting attributes
- Indirect modification of overloaded property WP_Post::$classes has no effect
- Check what “type” a menu item is
- How to display dynamic content in start_lvl function
- Getting post content within wp_nav_walker
- Add custom text to menu
- How to add a tag to wp_nav_menu in a child theme
- Third level navigation class
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- Get top items number from wordpress menu
- add span class and i tag inside wp_nav_menu link anchor tag
- How to Overwrite/Customize wp-admin/nav-menus.php in WordPress
- How do I separate link levels in a custom menu walker?
- Add within the output of
- wp_list_pages() but only show children on the branch you are on
- Sub Menu does not display using Nav Walker
- Is this format possible with a custom Nav Walker class?
- walker – 0 level on submenu formatting
- Get Menu Name inside walker
- Difference between walker class and basic php
- Where to implement custom walker class?
- Custom navigation structure with walker class
- CSS_Menu_Walker not showing on mobile view?
- How do you add a around the second level of a Menu?
- How to add class to parent a tag with a sub menu
- Help with walker for nav
- Dynamic_sidebar inside wp_nav_menu
- How to add attribute in menu code
- How to actually make menu walker alive on admin interface?
- Why is only the first operation run in my loop – except for on the last repeat? [closed]
- How Do I Add Images To Main Navigation Menu
- Walker menu not displaying at all
- 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)
- Displaying Nav Menu
- Wrapping menu’s top-level link and sub-menus in div
- Remove a class from a using Walker
- Add custom class to li element which has children
- wp_nav_menu: Is there a way to modify the output of that got a submenu?
- Custom menu walker – remove li tag based on class name
- How to convert the argument of wp_list_pages to an array
- How to change the menu mark up with walker_nav_menu class?
- Show Sidebar Menu Subpages When Clicking Parent
- How to Add support for sub-menu item description in wordpress?
- changing the labels inside appearance -> menus for some for the fields
- Costum walker with sub menu item count
- Walker_Nav_Menu creating too many closing tags?
- Hook or callback when wp_nav_menu() has completed
- 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?
- Need help with Walker_Nav_Menu class
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- why are my walker menu is showing like this?
- Multi-Level Nav Bar
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- 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
- Extending Walker_Nav_Menu in wp_nav_menu List of Empty Items
- Parent link need to go first child submenu
- Custom wordpress submenu
- Custom menu with Walker class – what should the $db_fields be?
- Add parent link to its submenu
- Is it possible to separate all submenu items?
- How can I edit submenu headings using wp_nav_menu walker?
- Can’t add optional class to menu item when using Walker_Nav_Menu
- Additional class for.sub-menu UL?
- Determine if a navigation item has children
- wp_nav_menu – Collapse with PHP
- custom walker to add iconfont to wp_nav_menu
- how to make a walker to this (in bootstrap, i try but not work)
- Custom navigation / menu output (walker?)