$wpdb->insert(
$wpdb->term_relationships,
array(
"object_id" => $thisMenuItem,
"term_taxonomy_id" => $menuID
),
array( "%d", "%d" )
);
This was missing from the Question code.
It allows the menu items to bind to the navigation menu itself.
Related Posts:
- WordPress Settings API, Implementing Tabs On Custom Menu Page
- WP Nav menu append to url
- switch_to_blog() and wp_nav_menu() not functioning properly
- echo same menu items across multi-site platform
- WP MU: Using pages from main site in other sites’ menus
- Menus don’t appear in admin area / WordPress Multisite
- Display menu locations in all sites of a multi site
- WordPress menu link not working
- two different separate sections on the same site
- Create subpages in default WordPress menu
- How to add a menu that belongs to parent blog to all child-blogs?
- creating a dynamic menu in wordpress
- When created sub-directory, can we create a new navbar?
- Multisite: menus can’t be added in child sites
- Multisite Setup – Menu Items To Reference Pages in Different Subdomains
- Homepage Menu Link Won’t Function
- Put two menus in the same location
- Header lists posts instead of showing primary nav menu
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Settings API in Multisite – Missing update message
- 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
- How to use a WordPress’ existing admin icon?
- How to move parent li to end of child ul
- Remove ‘Menus’ from Twenty Sixteen theme Customizer
- One site, 2 distinct sections: two different top nav menus?
- Can you have different menus and theme on a per-page basis?
- Custom nav walker with different output depending on depth
- Get menu item slug
- 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
- Custom Walker anchor tag not inheriting attributes
- Check what “type” a menu item is
- Admin only menu/page
- Prev / Next menu item
- wp_nav_menu() with multiple Class
- add span class and i tag inside wp_nav_menu link anchor tag
- Hide sub menus sometimes
- Grey out nav buttons unless is_user_logged_in()
- burger on mobile
- How to approach this menu design?
- Trying to Create Menu in WordPress
- Hierarchical menu nesting problem with jQuery targetting
- ‘Users’ and ‘Appearance’ have disappeared from dashboard menu [closed]
- Making nav menu sticky and transparent
- Jupiter theme Mega menu option not available
- Sub Menu does not display using Nav Walker
- 2 Different Nav Menus Have Same Name in WP-Admin
- Get Menu Name inside walker
- How to add ul and li classes to nav in wordpress
- Where to implement custom walker class?
- Responsive menu gone on wordpress Responsive theme
- Creating a Mega Menu
- register_nav_menus() won’t register menus
- How can I add text to a single nav menu item?
- How to add attribute in menu code
- In the Admin Dashboard, can I choose which sections to display?
- How to change the color of a menu item [closed]
- Walker menu not displaying at all
- Where is my menu editor
- wp_nav_menu not displaying the right way
- add 3rd party link (with script) to menu item
- Limit wp_nav_menu_objects() only to first-level menu items
- Hide an item from a menu to some users
- Locking in navigation labels before changing title?
- How to Add support for sub-menu item description in wordpress?
- wp_nav_menu_items for one menu
- Add menu headings to WordPress sub menus
- Customise the custom menu widget
- I can’t add more pages to menu – menu delete pages
- Confused about the correct functioning on WordPress Menus
- Admin Menu Hack (Left side in Dashboard)
- How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?
- How do I remove this menu bar?
- Different Menus based on Category Page
- nav-menu-template and columns in sub menu
- current-menu-item not apllying with wp_nav_menu() on ajax
- Custom link with checkbox that adds additional word to checked menu items
- menu not showing on mobile view
- Hide a menu (navigation bar) on all posts
- website is not loading home page (moving from one server to another server)
- Is it possible to have submenu outside of menu element? I dont want submenu to be a child of menu
- Bootstrap Nav Walker Sub Menu Image
- What are some of your favorite methods for creating an accessible menu?
- How to get all the menu listed in Menus Created inside the Apperance Menu?
- Add a menu item to the logged in users author page?
- Add Class to Custom Menu Widget ul
- Add parent link to its submenu
- Can’t change link for navigation item
- 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]
- Prevent Menu Shortcode From Formatting
- individual images as navigation design TwentyTen
- Setting up menus before making a template live
- Is it possible to add a superscript trademark symbol to a menu?
- Creating a Horizontal menu
- Database structure Menu Item