Custom Menus on Different Pages
-
Ive tried for hours. I cannot seem to get a seperate menu working for a new page I have created. I have found a good forum thread from about a year ago explaining how to do it, but still doesnt work…only creates a seperate menu above my own.
I created a seperate menu within appearance, called it “properties” went into my page itself (where i want this menu to appear) and created a custom field called “MenuName” with the value of “properties”. I then went into my header.php file and pasted the folowing code..<?php wp_nav_menu( array( ‘container’ => ‘none’, ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’, ‘menu’ => get_post_meta( $post->ID, ‘MenuName’, true) ) ); ?>
the result is that it yeilds my new menu above my default menu…so obvioulsly im thinking i need to replace the original wp_nav_menu code, but cannot find it anywhere within header or any other php file. Im using the theme “Striking” if this helps.
Thanks in advance guys!
- The topic ‘Custom Menus on Different Pages’ is closed to new replies.