WordPress.org

Support

Support » Plugins and Hacks » Change menu based on Logged in or out

Change menu based on Logged in or out

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m working on the same thing…if i figure anything out i’ll post it here…did you ever resolve this issue?

    tom_taylor_85
    Member

    @tom_taylor_85

    It is VERY simple, the code I use looks like this:

    <?php if ( is_user_logged_in() ) : ?>
    <?php include(TEMPLATEPATH."/footer.php");?>
    <?php else: ?>
    <?php include(TEMPLATEPATH."/footer2.php");?>
    <?php endif; ?>

    This code literally means: If you are logged in, display footer.php. If you aren’t, display footer2.php.

    You are going to need to create an IF ELSE code to display the proper menu.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change menu based on Logged in or out’ is closed to new replies.