In my header I have this for my primary nav:
if (has_nav_menu('primary_navigation')): wp_nav_menu([ 'theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav justify-content-end pull-right navigation__list navigation__list__header navbar__navigation__list__header', 'menu_id' => 'header-menu' ]); endif;
This show fine just about everywhere, however on a custom template I have for displaying some custom post types by taxonomy, the navigation doesn’t show up, the closest thing I have found is in
wp-includes/nav-menu-template.php when this is called on this template the
$menu-items on line 123 is empty. Any other time it is not. It is passing the same
term_id at all times. What am I missing regarding this? Or is there somewhere else I should be looking at? The call to the header is coming from
base.php so I’m pulling from the same place at all times.