Support » Plugin: Paid Memberships Pro » Login From Post Redirects To Member Profile

  • Resolved Rick5150


    I have created a user account that allows VIP visitors to log in and see the registered posts. While testing this, I found when I go to a “members only” post and click log in, I am brought to the WordPress Login screen.

    Once I enter the “VIP” name and password, I am not brought back to the post I was trying to read, but to the VIP member profile page instead, and I have go to the top and choose “visit site” and then find the post all over again.

    Am I doing something wrong?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jason Coleman


    Hmmm. The code could be updated to include a “redirect_to” parameter in the link to the login page. Not sure if we are doing this. Sometimes other plugins/code/etc override what happens after login.

    Is there an easy way for me to determine what is happening? This is the last stumbling block I have with PMP.

    It is a big one too, as those who are not familiar with navigating WordPress will click on the “LOG IN” link on a thread they want to read and wind up in the USER PROFILE instead, saying “Where am I?!”

    Here are the plugins I have – in case any are suspect. I swear it was working before the last update, but I can be mistaken as I often am.

    Advanced Excerpt
    Awesome Filterable Portfolio
    BulletProof Security
    Custom Post Templates
    Donate Extra
    Force Regenerate Thumbnails
    GD Star Rating
    Google AdSense Plugin
    Jetpack by
    List category posts
    My Category Order
    Paid Memberships Pro
    WP Content Copy Protection

    I have paid for a one year subscription. How can this be fixed?

    Plugin Author Jason Coleman



    Thanks for signing up. Some of this is already coded into the plugin. What you need to do is update the “Message for Logged-out Users” on the Advanced Settings page to include ?redirect_to=!!referrer!! in the wp-login.php URL.

    So the whole field could be:

    This content is for !!levels!! members only. <a href="/wp-login.php?redirect_to=!!referrer!!">Log In »</a> <a href="/wp-login.php?action=register">Register here  »</a>

    This should do what you need (assuming other plugins aren’t adjusting the redirect_to). If this doesn’t work for you, email me your WP admin user/pass and FTP user/pass.

    Also, I should make this the default setting for that field so logins redirect like that. Makes sense.

    That gives me two error messages. If I add my absolute links so it looks like this, it works fine:

    Full content is for !!levels!! members only. Log In » or Register here »

    The only issue that I can forsee is that if you click the Log In button on the excerpt on the first page, it would be nice if it took you to the actual post. Once you log in, you are back on the main page and have to find the article and click the Read More link.

    Way better than it was, that is for sure. If people access the article from the menu, it works great. Thank you.

    SO COOL!!!! Thanks Strange Studios! That code
    This content is for !!levels!! members only. <a href="/wp-login.php?redirect_to=!!referrer!!">Log In »</a> <a href="/wp-login.php?action=register">Register here »</a>
    is exactly what I needed!


    Plugin Author Jason Coleman


    Closing this thread. If you have a more specific follow up to this, please post it on the paid member forums.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Login From Post Redirects To Member Profile’ is closed to new replies.