Ready to get started?Download WordPress


[resolved] redirect back to post after login / logout redirect location (2 posts)

  1. gauravchand
    Posted 1 year ago #

    I have made the change to comments.php in theme twentyeleven as mentioned in one of your posts:
    comment_form( array( 'must_log_in' => 'You must be logged" rel="nofollow">http://yoursite.com/your-login-page">logged in to post a comment.' ) );

    (1) How do I make it redirect to the blog post from where the user logged in.

    (2) The Logout link on the Top right of admin bar logs the user out but redirects to the wp-admin login page instead of the member area login screen. How do I direct it to go to the login page of wp-members instead?


  2. Chad Butler
    Plugin Author

    Posted 1 year ago #

    Both of those are in WP itself, so you probably need to write a filter using the logout_url filter hook.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic