WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting after posting comments (3 posts)

  1. mrsolutions
    Member
    Posted 7 years ago #

    I have my comments for each post set to appear on its own unique page. Like this:

    Post Page: http://www.site.com/story-title/
    Comments Page: http://www.site.com/story-title/?comments=1

    However when anyone posts a comment on the comments page:
    http://www.site.com/story-title/?comments=1
    It will redirect after clicking "submit comment" to the posts page:
    http://www.site.com/story-title/

    Where do I control what page the browser redirects to after clicking submit comment?

  2. mrsolutions
    Member
    Posted 7 years ago #

    anyone have any ideas?

  3. mrsolutions
    Member
    Posted 7 years ago #

    I figured it out - It was a line in the the wp-comments.php that controlled the redirect.

    It took a few tries to get it right and not mess up the PHP but I did it in the end.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.