Below is my code:
wp_nav_menu( array(
'menu', _('My Custom Header Menu'),
'theme_location' => 'my_custom_location',
) );
And as result, I obtain all Wordpress page's menu link instead of the menu of My Custom Header Menu.
'menu', _(...), 'theme_location' => '...'
is what you intended? mixing[1,2,3]
and[ 'foo' => 'bar' ]
style array items is not normalmenu
andtheme_location
which is a paradox, "show this specific menu, no actually show the menu at this theme menu location"