Tags


1).  FUNCTIONS.PHP – MENUS

// Register menus

if ( function_exists( 'register_nav_menus' ) ) {
    register_nav_menus( array(
        'primary' => __( 'Primary Navigation' ),
        'secondary' => __( 'Secondary Navigation' )
    ));
}
To display menus on the front end, you would place the following in your theme file:
<?php wp_nav_menu( array('menu' => 'Primary Navigation' )); ?>
Advertisements