WordPress.org

Ready to get started?Download WordPress

Forums

not showing when users are logged in (5 posts)

  1. donzacharias
    Member
    Posted 7 years ago #

    The 'Register' and 'Login' links are still showing 'Register' and 'Login' even when a user is logged in. The comment form is still showing the name/email/website fields instead of 'Logged in as...' when a user is logged in. Have posted a topic before but haven't gotten any ideas other than browser cacheing but this is happening to all site visitors. Need help, will post code if someone can help me figure it out. Thanks!!!

    the site in question is http://sacrag.com

  2. moshu
    Member
    Posted 7 years ago #

    That's a theme specific issue. Not all of them behave the same.

  3. donzacharias
    Member
    Posted 7 years ago #

    Well it worked in this theme at one point. I must have tweaked something that made it break. Any ideas?

  4. cendant
    Member
    Posted 7 years ago #

    try this:

    <?php if ( $user_ID ) : ?>
    User is logged in
    <?php else : ?>
    User is not logged in
    <?php endif; ?>

  5. cendant
    Member
    Posted 7 years ago #

    Or vice versa

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags