Viewing 3 replies - 1 through 3 (of 3 total)
  • You might need to tweak this but I had a similar question when I wanted users to login/register (using linked words on top of my site) and come back to the page they were on to view the protected content, instead of having to navigate or get lost trying to get back to that particular page. Here is the code I was given:

    [s2If !is_user_logged_in()]
    <span style=”font-size:10pt;”>” title=”Login”>Login </span>
    <span style=”font-size:10pt;”>
    Register</span>
    [/s2If]

    I hope you can find out how to tweak it but this is working for me, so it should work for you too.

    Good luck

    Thread Starter ypeynaud

    (@ypeynaud)

    Thanks @cassel but I already have this kind of link in place. However, it doesn’t bring back the user to the initial page after register or log in. Maybe it is because I use BuddyPress, and that the registration process is either handled by BuddyPress (open registration on) or s2Member (open registration off), and not by WordPress.

    That’s why I tried to use the Theme My Login plugin which has a referrer capability, but it seems that s2Member takes over the return path, and that’s my question.

    Thanks for your suggestion.
    Yves.

    Thread Starter ypeynaud

    (@ypeynaud)

    Hello,

    Anybody got an idea on this issue?

    Thx,
    Yves.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirecting to visited page (referrer) after login or registration?’ is closed to new replies.