Home / Forums / DynamiX Support / Show Different Navigation Menu to my logged-in user

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • NorthMan
    Participant

    I want to Show Different Navigation Menu to my logged-in user than the one I do show to the rest. Some people do not understand they are logged-in when its stands login in the menu. And it seems the expect it to be in the menu.

     

    I have tried this but it don’t work:

     

    <?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’ ) );

    }

     

     

    I do use a child theme, and I did make a custom-functions.php there. Any tips?

    Andy
    Andy
    Keymaster

    Hi,

     

    I use the plugin for this site, it allows you to set menus for logged in and logged out. WordPress Access Control

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.