taken on someone elses code and trying to get a clear understanding of just how the comments forms should work. they're being used as feedback for someones visit to the venue, so not as a comment on a post like normal wordpress installations.

the comments form looks custom, but i think its fairly standard and it definitely uses the standard wp-comments-post.php page to add them to the db.

1 Answer
1

If you want to redirect the user to somewhere else after they submit a comment, then all you have to do is include a hidden input in your comment form with the name of "redirect_to" and the value of the URL you want to redirect them to. The lines of code you posted show that directly. No need to hack the core code.

thanks for the comment. i remember wondering if that was an option when i came across this, but its taken me a week to post this q. will go test that now.
–
shoftySep 24 '12 at 10:12

that did just what i needed it to, thanks for reminding me about it. it doesnt however seem to send back a POST response, so the code to thank the user never fires, any obvious way of making this happen?
–
shoftySep 24 '12 at 10:53