herb miller
WordPress plugin specialist

H2GD Part 41: How to create a simple contact form

With the right plugin, creating a simple contact form should be almost as easy as typing

display contact form here


Over on bobbingwidewebdesign.com I reviewed 6 Contact Form plugins. Today, since my Gravity Forms Licence had expired again, I tried Ninja Forms as well.

It took me a while to get a working version. I eventually succeeded when I lowered my sights. In the end the results weren’t much better than the simple contact form that comes as standard with my oik plugin.

How to create a simple contact form using oik

  1. Install and activate the oik base plugin
  2. Visit oik options > options and set a value for your email address: Email [bw_mailto]/[bw_email]..
  3. Create some content e.g. a new post or a page
  4. Somewhere within the content type

  5. Save
  6. There, that wasn’t hard now was it?



    • Enough fields to gather information from your site visitor.
    • Name and Email are required fields.
    • HTML5 validation.
    • Spam checking using Akismet.
    • Email sent to the content author.
    • It’s also copied to the email given on the contact form.
    • The email indicates the URL on which the form was completed.
    • Default text for Submit button is “Contact me” if the Contact [bw_contact] field is not completed.

    Related reading

WordPress capabilities: How to restrict Add New while allowing Edit

By default, when you register a post type, WordPress sets the value of the required capability for Add New to that used for Edit (i.e. All Posts). If you want to prevent users from using Add New content but still allow them to Edit content then you will need to assign different capability names.

But that’s not all. With the current version of WordPress ( 4.0 ) you need to implement a small workaround. →']);" class="more-link">Continue reading

1 2 3 13