Have you checked wp_dropdown_categories function?
It displays or retrieves the HTML dropdown list of categories.
I’m unsure of your exact needs but it could be a good starting point.
Related Posts:
- Adding an Arbitrary Link to the Admin Menu?
- Add child pages automatically to nav menu
- Removing link ” from ” menu for some “links” without JS
- Attaching a navigation menu to the admin bar?
- Multi Level Bootstrap Navigation Menu in WordPress
- How to custom output wp_nav_menu()
- Determine if a navigation item has children
- Directing a page to a default subpage
- Links open only on new tab or window
- How can I disable parent menu item links?
- Get parent page/menu id of current post
- How to Create a Custom WordPress Navigation Menu with the Code?
- How to add ID and class in nav menu walker?
- Set Item Order with wp_nav_menu_{$menu->slug}_items
- How can I get an array/list of all current WordPress Admin Menu items?
- Add “parent” class to parent menu items
- Add class to active element and its parent in nav menu
- Handling complex multi-level architecture / menu for large site
- Add custom text to menu
- Menu styling for last menu item
- WP Nav menu append to url
- Must a page be published in order to be added to menu?
- Hiding Admin Page While Keeping Menu Expanded
- 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?
- Best way to customise wp_nav_menu [duplicate]
- add span class and i tag inside wp_nav_menu link anchor tag
- Hide sub menus sometimes
- is_page() not working with archives?
- How to Overwrite/Customize wp-admin/nav-menus.php in WordPress
- Filter for Admin Nav Menus Drop Down
- Add a class at specific element in custom Menu Walker
- wp_list_pages() but only show children on the branch you are on
- Tidy nav menu classes except for edit-menu-item-classes and active class
- I need help adding a second custom menu item to the WooCommerce account area menu
- Cant add menu items with my theme
- Why aren’t my post showing under my custom menu?
- Dynamically add sub menu items
- How can I add text to a single nav menu item?
- Alternative to wp_get_nav_menu_items?
- How to style a specific nav menu item?
- remove class “sub-menu” from wordpress drop down menu
- Add a submenu to wp_nav_menu
- Twenty seventeen Menu is not responsive not clickble
- remove menu items if user can’t read
- How to set classname for tag in wordpress menu?
- Automatically going to the first page in a hierarchy?
- rearrange the posts by published date in Menu posts selection
- Setting color of specific menu items depending on page or post tag
- sub menu link is not working
- Limit wp_nav_menu_objects() only to first-level menu items
- wp_get_archives doesn’t take effect from css or html
- Orderby menu_order not working; menu is sorted on publish date
- Locking in navigation labels before changing title?
- Change Menu Button Text [closed]
- Menu page with three columns
- Appearance > Menus > Left Sidebar > Add Toggle
- Using CSS ID’s and Classes with images in a WordPress Horizontal Menu
- How to list menu-item- ids in order for wp_nav_menu
- How to show pages in menu without link
- Drop down menus with wp_nav_menu or wp_page_menu
- Show wp_nav_menu() based on URL with no fallback
- Exclude all pages except a few?
- Secondary Menu Not Functioning as a Sticky Menu
- Add prefix to url, but products not showing in page SHOP
- Nav Menu: Theme Location not working
- Remove Link from WordPress Menu
- Create link/button to create new post using specific template
- How to use Bootstrap Navbar in wordpress Nav Menu
- wp_nav_menu seems to be printing the wrong menu
- Appearance -> Menu editor completely unresponsive
- Unable to filter/group the menu items based on the category of the pages in the Menu using wp_nav_menu
- Classes CSS (Optional) – how do I reference this in php?
- Replacing nav-menus.php file with standard clean one?
- How to add limited items in WordPress menu?
- Problem with positioning of the menu in custom WP style
- Site-wide tabs at WordPress website?
- How to make menu output links absolute
- Creating custom Menu for custom theme
- Menu subitem doesn’t keep its position
- Update nav menu not selecting parent
- wp_list_pages, links only for pages with no children
- Additional class for.sub-menu UL?
- Display all submenus
- WP Nav Menu: String replacements
- who to limit number of li in wp_nav_menu
- Menu item added with “wp_nav_menu_items” gives “damaged” url
- How to call either page name as the nav link or navigation title?
- how to make a walker to this (in bootstrap, i try but not work)
- Any plugin to make a 3 levels menu? [closed]
- How can I make this process automatic?
- How can I alter the visible menu according to which level I am on [closed]
- Why don’t my custom menus show up in WPtouch Pro?
- How to change first letter of active menu item
- Site navigation sits unstyled for a second on page reload [closed]
- How can I only show one responsive menu on mobile devices?
- Twenty-Twenty-Two Child Theme Mega Menu
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening
- register_nav_menus() not registering