What is the best way to add custom fields to a WordPress comment form? (for example subject, image, etc...)
And how do I use the data entered afterwards...
What is the best way to add custom fields to a WordPress comment form? (for example subject, image, etc...)
And how do I use the data entered afterwards...
Share Improve this question edited Sep 20, 2010 at 3:47 hannit cohen asked Sep 4, 2010 at 20:01 hannit cohenhannit cohen 1,5317 gold badges21 silver badges33 bronze badges 1- Can you please review your question and Mike's answer? – hakre Commented Dec 26, 2010 at 14:11
2 Answers
Reset to default 4Hi @hannit cohen:
This slideshow from Beau Lebens should be able to show you how:
- Hooking into Comments
And this blog post from Otto should be able to show you more:
- WordPress 3.0 Theme Tip: The Comment Form
My newly updated plugin (version 2) is available here http://www.solaceten.info/wp-extra-comment-fields-v2
Now fully automated and compliant with WP standards :-)
You can add extra comment fields automatically using the plugin, make them public or private, and make them mandatory or not.
Use radio, text fields or dropdowns! Lots of options :-)