This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_nav_menu(array('theme_location' => 'primary')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_nav_menus(array( | |
'primary' => __('Primary Menu', 'textdomain' ), | |
'secondary' => __('Secondary Menu', 'textdomain' ) | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!function_exists('theme_footer_menu')) : | |
function theme_footer_menu($args = array('theme_location' => 'secondary', 'seperator' => '•')) { | |
$args['seperator'] = ($args['seperator'] != '') ? ' ' . $args['seperator'] . ' ' : ' '; | |
if ($args['theme_location'] == '') { | |
return false; | |
} else { | |
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $args['theme_location'] ] ) ) { | |
$menu = wp_get_nav_menu_object( $locations[ $args['theme_location'] ] ); | |
$menu_items = wp_get_nav_menu_items($menu->term_id); |
NewerOlder