Weird Problem: I registered two menus (theme-positions) and then added two different menus to each (in Wordpress Admin), but it always shows same menu in both positions:
sidebar.php
<?php
wp_nav_menu(
array(
'menu_name' => 'Header Menu',
'theme-location' => 'header-menu',
)
);
?>
<div id="menu-content" class="back-canvas">
<div class="inner-menu-content">
</div>
</div>
<?php
wp_nav_menu(
array(
'menu_name' => 'Footer Menu',
'theme-location' => 'footer-menu'
)
);
?>
functions.php
add_action( 'init', 'bc_init' );
function bc_init() {
add_editor_style( get_stylesheet_directory_uri() . '/css/editor-style.css' );
load_theme_textdomain( 'bc_leimcke', get_template_directory() . '/lang' );
register_nav_menus( array(
'header-menu' => 'Header Menu',
'footer-menu' => 'Footer Menu'
) );
}
has anyone had the same problem? any hints?