• I am sure i have asked that in the past, but i can’t find the answer.

    I have a LOGIN link on top of my site, where the code is:

    <a href="<?php echo wp_login_url( get_permalink() ); ?>" title="Login">Login</a>

    That works fine where the user can login, and come back to the same page. But i need to also include a link to that login inside the text (something like “If you are already registered for this class, simply LOGIN first to get access to its content”, i am not really sure how to integrate that code to make it work.

    I tried this it with the exact same code, but it is still redirecting the user to the Welcome back page, and then they have to navigate back to where they were. Is there a code for that in “regular html”?

    https://www.ads-software.com/plugins/s2member/

  • The topic ‘Logging in and coming back to the same page’ is closed to new replies.