Support » Fixing WordPress » Redirection After Login

Viewing 1 replies (of 1 total)
  • Thread Starter fi3ryfalc0nZ

    (@fi3ryfalc0nz)

    I meant this code:

    <?php
    if ( is_user_logged_in() ) : ?>
    <p style="margin-left:12px;">Welcome back, <?php global $current_user; get_currentuserinfo(); echo '' . $current_user->user_login . "\n"; ?> | <a href="<?php echo wp_logout_url().'&action=logout&redirect_to='.$_SERVER['REQUEST_URI']; ?>" title="Log out of this account">Logout</a></p>
    <?php else : ?>
    <p style="margin-left:12px;"><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>" class="simplemodal-login">Login</a> | <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=register" class="simplemodal-register">Register</a></p>
    <?php endif; ?>

    I was using the previous code for temporary measure to redirect all my users to the frontpage.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirection After Login’ is closed to new replies.