Skip to content
›How to Redirect First-Time Com...

How to Redirect First-Time Commenters to a Thank-You Page in WordPress

In This Guide
Quick answer
  • Redirecting a first-time commenter to a thank-you page is a simple way to welcome them and suggest a next step, like subscribing.
  • Create a thank-you page with a short welcome, your best posts and an email signup form.
  • WordPress has a built-in filter, comment_post_redirect, that lets you change where commenters go after posting. Add it with a code snippet plugin like WPCode.
  • Only redirect first-time commenters, so regulars aren’t interrupted.
When someone comments for the first time, they’re engaged. A thank-you page is a friendly way to welcome them and keep them around.

Step 1: Create a thank-you page

  • Thank them for commenting.
  • Link to your most popular posts.
  • Add an email signup form.
  • Link to your social profiles.

Step 2: Add the redirect

WordPress provides the comment_post_redirect filter, which controls where a visitor goes after submitting a comment. Using a code snippet plugin such as WPCode (WordPress.org, 3 million+ installs), you can return your thank-you page URL when the commenter has only one approved comment.

Step 3: Test it

  • Comment from a private browser window with a new name and email.
  • Approve the comment if moderation is on.
  • Check the redirect, then comment again to confirm regulars aren’t redirected.

Tips

  • Keep the thank-you page short and friendly.
  • Don’t hide the comment they just wrote. Link back to the post.
  • Track signups from this page in Analytics.

FAQs

Sharing is caring

Popular on Bloggersutra Right Now!

Disclosure: Our content is reader-supported. If you click some of our links, we may earn a commission at no extra cost to you. See how Bloggersutra is funded. Here is our editorial process.

About the Editorial Staff

Editorial Staff at Bloggersutra is a team of WordPress writers led by Munish Siwatch, who has worked on website design and blogging since 2009. We write tutorials, reviews and guides that help beginners start, run and grow a WordPress website.

Join the Conversation

Leave a comment


Free WordPress Guides

Follow Bloggersutra for fresh WordPress tips.

WordPress Deals & Coupons

Save on hosting, themes, plugins and blogging tools.

Latest Posts

Start Your WordPress Blog

Follow our beginner guides, from choosing a host to publishing your first post.

Deals & Coupons

Save over 40% on your first year
Up to 88% off + free domain
Up to 73% off + free domain