amy-d
1/10/2013 - 8:29 PM

PHP: WP - Custom Wordpress Menu

PHP: WP - Custom Wordpress Menu

<?php // CUSTOM WORDPRESS MENU
// IN FUNCTION.PHP
     function register_menus() {
          register_nav_menus(array(
               'primary-menu' => __('Primary Menu')
          ));
     }
     add_action('init', 'register_menus'); 

// PLACE IN ACTUAL TEMPLATE
// wp_nav_menu( array( 'theme_location' => 'primary-menu' ) );
?>