$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
- wp_get_nav_menu_items() not working with slug
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- Add Class to Specific Link in Custom Menu
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- How is custom menu hierarchy output handled?
- How to fix strange 500 Error after Editing Menu?
- Creating new dynamic menu including BP links [closed]
- List parent item with all child item on child pages
- Override custom menu widget
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- Placing widget to menu
- container_class doesn’t seem to be working
- How to remove trailing tags from wp_nav_menu walker
- Loop through Navbar, Output Icons
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- How to display dynamic content in start_lvl function
- Partial refresh of menu in customizer not working?
- Add custom -element to wp_nav_menu
- Disable automatig SVG tag from menu
- next_post_link() on custom menu structure
- Different fields available for different sites when when customising Menu’s
- Custom walker with hashes instead of links (one-page layout)
- How do I apply a class to custom menu items based on user roles
- Menu API not switching menus?
- Can I insert elements anywhere into the results of wp_nav_menu()?
- Using Walker To Add Menu CSS Class Functionality
- How to include the parent page link in this wp_nav_menu walker
- how can remove this element to avoid having two menu buttons with one that shows unnecessary pages
- How to make next and previous button based on a menu
- How to combine multiple categories in one Menu item?
- WordPress Menu Walker: add #hashes to child page links (only)
- add_filter on menu items to add a menu item
- WordPress Walker – Group two items?
- Unlimited WordPress Menu
- How to show dynamic side bar on menu item [closed]
- Dynamic_sidebar inside wp_nav_menu
- Hide menu from homepage
- changing theme folder name breaks menus – twentyeleven
- Submenu in sidebar custom page template
- How to add a second custom menu in my sidebar when theme only supports one?
- add_filter for where statment issue
- get only the item you click on
- How to add columns to wordpress menu editor
- Output Post ID for all nav_items
- How can I add a class to a nav menu when I’m viewing a child page?
- Removing a page from the header menu
- Splitting up a submenu into columns, or putting existing menus in another menu as submenu item
- wp_nav_menu does not take arguments?
- “Widgets” menu doesn’t appear
- WordPress always display the first menu
- Can’t insert internal links and menu errors appearing
- horizontal menu / 4-level depth
- 500 Internal Server Error when Trying to Save Menu [closed]
- Theme Menu vs Native Menu
- How do I convert a custom menu wp_get_nav_menu_items into Fourth level?
- Need to remove the admin menu item from a be theme in wordpress
- How to add CSS class to and and id in a nav menu with code?
- having a page in multi sub-menu and match current-menu-item
- Roles see different top menu (nav menu)
- Sub-Items Not Visible in Navigation
- Custom menu with Walker class – what should the $db_fields be?
- Has there been any improvements to wp’s menu handling?
- How can I edit submenu headings using wp_nav_menu walker?
- How to get the title of root li element
- How make top level menu item not have link, but have sub-menus that are linked?
- Creating and populating custom nav menu (menu-item-position not working)
- Add Menu Item in Specific Order
- WP NAV MENU – Dropdown always showing
- Can’t style custom menu
- Determine if a navigation item has children
- wordpress 3.4.2 + wp_nav_menu + chunk theme not working [closed]
- The menu jumps a few pixels after the website loads
- Any way to use classic Menus in Full Site Editing?
- Get_avatar filter hook not displaying custom avatar image on frontend
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress
- Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size
- WordPress menu empty of items
- How can I display different menu for logged in users using a block theme
- Top Level Menu Item points to first item on submenu
- Live site menu links pointing to staging site pages