• Hi, I am using wp-members with good effect which I have put on a members-area page. My problem is about comments. I have “Users must be registered and logged in to comment” ticked, so when a visitor goes to a comment they see “LOG IN TO REPLY” or “You must be logged in to post a comment”.

    Both of these links go to site-name.com/wp-login.php?redirect_to=https://site-name.com/post_name. So when they are clicked, they go to the standard WP login form and once logged in, return to the post that they came from.

    I can redirect to the members-area page by changing the %s in comment-template.php (line 1539) to the members-area URL, but I can’t seem to work out the full code to put in to get the user directed back to the post as it would with the standard login form.

    It’s rather long-winded I know, but hard to explain in a few words.

    If anyone could help, it would be appreciated.

    Thanks,
    Lee.

  • The topic ‘Redirection Problem’ is closed to new replies.