On 02.10.12, In wordpress, by Samuel east
WordPress menu using wp_nav_menu
First add this to functions.php
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus(
array(
'menu-1' => __( 'Menu 1' ),
'menu-2' => __( 'Menu 2' )
)
);
}Add this to your theme.
<?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_class' => 'main_menu' ) ); ?>Below are the params you can use
<?php $defaults = array(
'theme_location' => ,
'menu' => ,
'container' => 'div',
'container_class' => 'menu-{menu slug}-container',
'container_id' => ,
'menu_class' => 'menu',
'menu_id' => ,
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => ,
'after' => ,
'link_before' => ,
'link_after' => ,
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => );
?> 







Quick Signup And Connect
Enter your WordPress.com blog URL
http://.wordpress.com
Proceed