Return to Snippet

Revision: 46476
at May 20, 2011 05:49 by nathanbweb


Initial Code
/* support custom menus */
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus(
array(
'menu-nav' => __( 'Navigation Menu' )
// ,
//'menu-2' => __( 'Footer Menu' )
)
);
}

// then in header.php add:

<?php wp_nav_menu( array( 'theme_location' => 'menu-nav' ) ); ?>

Initial URL
http://www.devlounge.net/code/how-to-add-support-for-menus-in-your-wordpress-theme

Initial Description

                                

Initial Title
WordPress enable custom menus

Initial Tags
wordpress

Initial Language
PHP