Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm running Genesis Framework on WordPress and I have to display a different top menu for logged in users and a different one for unregistered users (guests).

I created the 2 menus in the WP backend > Appearance > Menus:

  • top-menu1 for guests
  • top-menu2 for registered users

Normally I'd have to just use this:

if( !is_user_logged_in() ){
    wp_nav_menu( array( 'primary' => 'top-menu1' ) );
} else {
    wp_nav_menu( array( 'primary' => 'top-menu2' ) );
}

Since this is Genesis though, I'd like you to point me to:

  • what's the equivalent of the wp_nav_menu function?
  • how do I register the 2 menus?
  • what files do I have to modify?
share|improve this question
    
Close-voted as too localized. As Genesis is a commercial Theme, we don't have access to the code to be able to help provide an answer. Have you tried StudioPress support? –  Chip Bennett Nov 21 '12 at 12:55
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.