2005
Modify WordPress ContactForm
Sponsored Links
WordPress ContactForm is a useful little plugin for Wordpress. It lets you add contact form easily to any post or page, thus giving your visitors a way to keep in touch with you.
I’ve been using WP ContactForm for a while and I’m very happy with it. It’s simple, easy to install, and more important, it does the job. But upon modifying my site’s structure, I found that now I need a Subject field in the contact form. This will also be the subject for the email sent to the sender (in this case: me).
By default, you can only have one subject for all the contact form you have. This is configured through the admin interface. But I want my visitors to be able to specify the subject line themself. Or at least, I can easily define what the default subject for each form.
For example, in this site I have three contact forms. One for the Contact Us page, one for the Submit/Correct Story page, and the last one for the Advertise/Partnership page. I want the first form to have “Contact Us” subject by default, the second form with “Submit/Correct Story”, and the third with “Advertise/Partnership”. Since the plugin unable to do that, I’ve made a little modification to it
This is how the form looks like after modification.

Basically, I just add the Subject field in the contact form. This plugin will look for “subject” parameter in the URL. If found, it will be used as the subject. You can check all the three pages above for the live demo.
If interested, you can download the modified plugin here.
Note that it is based on WP-ContactForm v1.2. I just found out that v1.3 already out after I modified the plugin. Maybe I’ll modify that new version later.
Have fun ![]()
And while you're here, why don't you check out our other articles:
Pssst! Most people are coming to this page searching for: 



there’s some error for this link..i can’t put one of theme…