• Resolved paulorobertovida

    (@paulorobertovida)


    Hello everybody. I would like a little help here and I appreciate anyone who can help me!

    Here at the company there is a portal accessible only to employees. When you enter the portal URL, you are automatically directed to the login form. So far so good… The problem is that when the user is already logged in and he accesses the same portal URL, the message appears that he is already logged in, but it does not allow him to leave the screen and return to browse the portal, conditions you to log out and log in again.

    Is there a way to redirect the user who is already logged in to the content when they type the portal URL instead of this message appearing?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    This is possible for sure.

    If you want to solve this with a little bit of custom code, it would something like this:

    if ( is_user_logged_in() ) {
        wp_redirect('domain.com/member-area');
        exit;
    }

    You have to replace the “domain.com/member-area” with the correct URL.

    Thread Starter paulorobertovida

    (@paulorobertovida)

    Hi @koenschipper! Thank you for the help! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issues with Redirection by Login Form’ is closed to new replies.