php - Wordpress multisite - menu in footer of one domain is referencing the menus of a different site on the multisite
one text
I'm working on a multisite and in my footer.php and in one of the domains I have this menu that is referencing a menu from a different site in the multisite. I know on the blog page the correct one is being used but elsewhere it isn't and I'm not sure why. Is there a way that I can ask it to stay referencing the current site's menu for the footer?
<div class='right-half-wrapper'>
<?php
wp_nav_menu(
array(
'menu' => 5,
'container_id' => 'navbarNavDropdown',
'menu_class' => 'navbar-nav ml-auto d-flex flex-row',
'fallback_cb' => '',
'depth' => 4,
'walker' => new Understrap_WP_Bootstrap_Navwalker(),
)
);
?>
</div>
Source