1

A client has numerous subsites and would like to include a 'global menu' within the packaged theme. I've got a registered location global-menu and I've got it populated with links in functions.php.

Which action do I use to place that menu inside of the theme location?

  • What do you mean you've got "it" populated? Menu Locations and Menu Objects are two separate things. – vancoder Aug 29 '16 at 23:04
2

wp_nav_menu displays a navigation menu and 'theme_location' can target a menu registered with register_nav_menu.

wp_nav_menu( array(
    'theme_location' => 'global-menu'
) );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.