Using WordPress comments as a contact form
Justin Tadlock has posted a way to use built-in WordPress comments in lieu of a contact form. Basically, you replace your theme’s current comments.php file with the one that Justin offers for downloading that checks if a page is called “Contact.” If it is, the comments stay hidden on that page. You can change the comments.php file so that other pages on your site will also hide comments.
Then you can create your contact page which will display the comment form, but any comment submissions will stay hidden.
- Don’t need to use another plugin
- Don’t need to tweak a plugin
- Can theoretically manage all contact form submissions from your site rather than via email.
- Submissions are actually comments, so they end up in your comment queue. If you have a lot of comments on your site, that can get hard to manage.
- if you ever change themes or your “comments.php” file, then your comments on your “Contact” page will no longer be private. This can be solved by deleting all of these types of comments, which I personally don’t like because I like to save letters from readers; or using this solution forever, which is kind of a long-term commitment.
It’s an interesting idea, and worth considering.