Return to Snippet

Revision: 35160
at November 3, 2010 13:19 by johnnyrokkit


Initial Code
Simply add the code below to your theme’s functions.php file:

    add_theme_support( 'menus' );


And use this code to insert the menu into your template file:

    <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>

Initial URL
http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/

Initial Description
How to enable Custom Navigation Menus in WordPress 3.0

Like the custom background, header image, and post thumbnails, the custom navigation menus also needs to be enabled through your theme’s functions.php file.

Initial Title
Using Custom Menus in WordPress using PHP

Initial Tags
php, wordpress, theme

Initial Language
PHP