• hey guys…

    i’m trying to accomplish displaying a welcome message if a user is logged in, failing which (if not logged in), a login form should appear… i’ve tried this:


    <?php global $user_login, $user_identity; get_currentuserinfo();
    if ($user_login); ?>
    Welcome back <?php echo $user_identity; ?>. (<a href= "/wp-login.php?action=logout">logout</a>)
    <?php else : ?>
    <!-- login form -->
    <?php endif; ?>

    it works up until the else comment, then the page doesn’t load at all…

    somethings missing, altho i’m not sure what…

    would really appreciate some help..
    tx ??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Login form & Welcome Message’ is closed to new replies.