I get it that the menu is generated via queries, hence the bottlenecks. If things don’t change too often, it’s much more efficient to build it manually (or simply just copy the generated html and paste it back instead of source). If things do change often, cache it.
Related Posts:
- Split up wp_nav_menu with custom walker
- How do I add a search box to the nav menu?
- How to get IDs for objects in menu branch?
- New post notification in wp_nav_menu
- WordPress Menu Custom Walker Class
- How to change order of menu items
- How to use a WordPress’ existing admin icon?
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Show child pages by menu order using Superfish Dropdown menu?
- Bootstrap drop down menu with wp_nav_menu
- One site, 2 distinct sections: two different top nav menus?
- Can you have different menus and theme on a per-page basis?
- Adding a within ‘s from wp_nav_menu()
- Display link with current user’s username in it in Custom Menu
- Add class to menu ul with active child
- jQuery cookie not working properly in wordpress
- Make compatible custom menu widget for Twitter Bootstrap
- Different side menu on each page
- Check what “type” a menu item is
- Automatically generated menu
- Variables within wp_nav_menu
- Admin only menu/page
- wp_update_nav_menu_item not saving in multisite API
- Header style different on home and remaining pages
- wp_nav_menu_items filter :: custom menus fall outside ul class
- Add within the output of
- Add CSS to head depending on nav menu walker
- WP MU: Using pages from main site in other sites’ menus
- How can I add items to the menu via the PHP file?
- Limit the menu child levels under “admin > appearance > menus”
- WordPress warning: “private_to_published” Deprecated when creating nav with wp_update_nav_menu_item()
- display menus on all page except one?
- Is this format possible with a custom Nav Walker class?
- two different separate sections on the same site
- how to disable default menu classes
- How to customize submenus isn wordpress theme [closed]
- custom walker nav issue involving ajax
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- Can I have a different menu for each parent page?
- Conditional menu display
- Give child-categories same class (the parent category-slug) as parent in menu list?
- How Do I Add Images To Main Navigation Menu
- Combine 2 categories in one Menu item
- Wrap list parent in div with wp_nav_menu menu
- WordPress Menu Exchange On Tablet’s Orientation
- How to add a element with walker menu right after begin of the navigation tags?
- Custom Menu not functioning properly
- Using front-page.php need new blog page
- Is it still not possible to show separate submenu with “Custom Menu”?
- Rename the label on a menu location which is already defined?
- How to making dynamic URLs for menus in WordPress?
- Increase wordpress menu Depth
- How to hide the menu item created by the theme in WordPress admin panel?
- Custom menu walker – remove li tag based on class name
- Hide pages from the main menu
- How to customize the built in menu in wordpress?
- Current author archive in navigation menu
- Adding CSS-class to WordPress Menu in backend
- How to change the menu like this?
- How to get or know the slug of home.php
- Removing Submenu from Menu
- Set first level items to in wp_nav_menu()
- Difficulties filtering manage_nav-menus_columns
- How to create menu spread over four lines including images
- plus sign not working in widget “Header: Nav Menu”
- Do not hyperlink menu heading
- Adding conditional classes to wp_get_nav_menu_items
- WordPress menu items automatically becoming empty custom links
- Help with WordPress Custom Nav Walker
- Custom link missing as option in my ‘add menu items’
- Replace the page url with a menu link?
- Cannot collapse a responsive menu in WordPress
- Change hover to onclick on menu
- How can I get back the content of a sub-menu
- Only the index.php/homepage open while other pages are not opening
- Why my dropdown menu is effecting main menu?
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- WordPress Menu Navigation links not working
- How to apply individual menu item’s “CSS Classes” to , not ?
- Display_name in menu
- How to access into the description of a sub menu
- how to split vertical menu into two columns using walker nav menu
- Get Sub-Menu Dropdown to Show Over Page Content
- Foundation Scripts not loading (custom theme)
- How to Add Class in
- Menu Details Output in Javascript [closed]
- Show Child of Parent Page including all other parents
- Loading wordpress menu in an external server
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- Show only second level menu items? [duplicate]
- Add item ONLY to the primairy navigation
- wp_nav_menu in 3.7 add name class nav navbar-nav
- Prevent Menu Shortcode From Formatting
- individual images as navigation design TwentyTen
- Is there a limit to number of pages displayed for selection in custom menu?
- Add monthly archives menu and submenu
- child theme font awesome icons not working
- add dynamic ID for wp_nav_menu after and before
- How to replicate a mobile menu from a site to a wordpress site [closed]