Calling a custom menu on a template page
-
I have built a menu using the “Appearance > Menus” command. I would like a particular menu to appear on the “About Us” section on my the site I am building.
This is current structure of the Menu:
About Us
Our Leadership Team
– Biography #1
– Biography #2
Our Staff and Advisory Board
– School Advisory Board
— Biography #1
— Biography #2
I’m using the current code in my template to fire the menu. I know it’s obviously wrong:
<?php if ( is_page(‘about’) || $post->post_parent == ’11’) { ?>
<? wp_nav_menu( array(‘menu’ => ‘main-about’ )); ?>
<?php } ?>This is only showing the menu on the main sections of “About” and is also showing ALL of the options. I’d like it to work so if you are on the main About Us page — that it doesn’t show you all of the subpages on the other sections (only when you click to that particular page)
Any help would be appreciated.
- The topic ‘Calling a custom menu on a template page’ is closed to new replies.