Contact Form on WordPress Sites?

The question:

How does one go about building a page in wordpress that contains a contact form full of custom fields, boxes, inputs, etc. completely determined by the author of the site. It seems odd that wordpress currently lacks this feature, but knowing the wordpress community, it’s unlikely that we must do without.

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

Contact Form 7 is one of the most popular plugins to add a contact form to a WP blog. It supports multiple contact forms and you can add/remove fields as needed. Additional services such as reCAPTCHA and Akismet can be added. I use this on most of my blogs to power the contact features.

Method 2

One of the most common plugins used to do this is Contact Form 7. There are also numerous other free plugins to add this functionality, as well as paid plugins such as Gravity Forms.

Method 3

Consider using Gravity Forms. It’s commercial but only $39 per site and it’s one of the best $39 I’ve ever spent for WordPress development.

Method 4

If you are looking to do a highly custom form, and want complete control over what happens, you can also create a new template for the page, and your form on that template would post back to itself. At the top of the template you could do something like this:

<?php
if($_POST)
{
     // do something
}
?>

Not the most elegant, but it works.

Method 5

Add me to the Gravity Forms supporters list. Of course it does a lot more than just contact forms. You should definitely check out the feature list and decide if it is worth your $39 dollars. It was a no-brainer for me and I bought the unlimited site developer license. The time that it saves me makes it worth it.

Method 6

I’ve been pleased with the (free) Deko Boko forms plugin. Flexible, easy to modify and recaptcha is integrated.

Method 7

Secure Form Mailer Plugin For WordPress

For years and years I have been using the form plugin from dagon design: http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/ for free! (so let me do my happy user giveback thing:)

This plugin has a wide range of features including:

  • Support for multiple instances
  • An easy to use dynamic form generation system (any number of fields, in any order)
  • multiple recipients
  • multiple file attachments
  • optional auto reply feature
  • an image verification system
  • numerous security features (including protection against email header injection)
  • a message template system
  • multiple languages
  • and too many other things to list.

This plugin was designed to be easy to use, while still being extremely flexible. If you just want a simple contact form, you can set one up with just a few clicks.

For those of you who need something a bit more advanced, you can completely customize the plugin to fit your needs – whether it is 5 fields or 500. A non-WordPress version is also available. ReCaptcha support has also been added, as well as support for storing the data in a delimited file.

It has served me well for years.

Method 8

See the different- for only a form in one page it is easy and fast (no filter-hook or other) to write a template for a page in WP, for more flexibilty and functions us a plugin. A ready solution or a starter there you can find here: https://github.com/bueltge/WP-Contact-Form-Template

Method 9

Plus one for gravity forms as I have found it to be much easier for my clients to use. Is easier to provide theme support for (ie Easier to customize via CSS) and has fewer conflicts with other plugins

Method 10

There is as well the Grunion Contact Form (WordPress Plugin) which is quite simple to use. Just add a

[contact-form-7 404 "Not Found"]

Shortcode inside a page or post. Job done. Can be configured as well.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment