Multiple Custom Menu not working share same links
-
I’m building a theme with WordPress 3.0.1 and i need to use multiple custom menu, using the built in new menu feature…
this is the code in my functions.php
add_action( 'init', 'register_my_menus' ); function register_my_menus() { register_nav_menus( array( 'primary_nav' => __( 'Primary Navigation' ), 'slider_nav' => __( 'Slider Navigation' ), ) ); } ?>Everything is working in my wp dashboard i can add and remove menu items and i can select wich menu i need to use in each different theme location.
Now, this is the code i’m using in my template for primary navigation and slider navigation
primary navigation
<?php wp_nav_menu( array('menu' =>'primary_nav','container'=>'','menu_class'=>'sf-menu','menu_id' =>'navbar')); ?>and slider navigation
<?php wp_nav_menu( array('menu' =>'slider_nav','container'=>'','menu_class'=>'slider-wrapper','menu_id' =>'slider-navigation')); ?>they both works, but they share the same links, if i add new links at the slider navigation they do not show, but if i add new links at the primary navigation they show in both primary and secondary navigation…
how can i fix this ?
The topic ‘Multiple Custom Menu not working share same links’ is closed to new replies.