Does anyone know of a way to use custom menus in 3.0 to show one menu for logged in users and another menu for non-logged in users? I have the two menus (menu1:logged-in-menu and menu2:logged-out-menu) created in 3.0 and their ids (id 15 and 16). However, I am not really sure where to add the code.
I am sure it uses something like this, but I am not sure how to start with functions.php
PHP Code:
<?php
if ( is_user_logged_in() ) {
wp_nav_menu( array( 'theme_location' => 'logged-in-menu' ) );
} else {
wp_nav_menu( array( 'theme_location' => 'logged-out-menu' ) );
}
?>
Do I use a remove_action(); and add_action(); or do I use a filter? I am using Genesis though.
Any suggestions?