How to Create a Contact Form in WordPress 2026

How to Create a Contact Form in WordPress 2026

How to create a contact form in WordPress with Contact Form 7 or a drag-and-drop builder, then make sure messages arrive, stop spam, and handle privacy.

A contact form lets visitors reach you without exposing your email address to spam bots. WordPress doesn’t include a contact form block by default, so most sites use a form plugin. Setting one up takes a few minutes, but sending emails reliably and keeping spam out need a little more care.

This guide shows how to create a contact form in WordPress in 2026: which plugin to choose, how to build and add the form, and how to make sure messages actually arrive.

The Short Answer

  1. Install a form plugin such as Contact Form 7, WPForms Lite, Ninja Forms, or Formidable Forms.
  2. Create a form with name, email, subject, and message fields.
  3. Set where submissions are emailed, and use an address on your own domain as the sender.
  4. Add the form to your Contact page with a block or shortcode.
  5. Turn on spam protection, such as reCAPTCHA, Turnstile, Akismet, or a honeypot.
  6. Set up SMTP so WordPress emails are delivered, then send a test message.

Choosing a Contact Form Plugin

PluginFree versionBuilder styleGood for
Contact Form 7Yes, fully freeForm tags in a text editorSimple forms, users comfortable with a little markup
WPForms LiteYes, paid upgradesDrag and drop with templatesBeginners who want a visual builder
Ninja FormsYes, paid add-onsDrag and dropSites that may need add-ons later
Formidable FormsYes, paid upgradesDrag and dropAdvanced forms, calculations, and data views
Gravity FormsNo, paid onlyDrag and dropComplex business forms and integrations

Contact Form 7 and WPForms Lite are the most widely installed form plugins on WordPress.org. For a basic contact form, any of the free options is enough. Pay only when you need features such as conditional logic, payments, or CRM integrations.

Option 1: Create a Form with Contact Form 7

Step 1: Install the plugin

Go to Plugins → Add New, search for “Contact Form 7”, then install and activate it. A new Contact menu appears in the dashboard, with a default “Contact form 1” already created.

Step 2: Edit the form fields

Open Contact → Contact Forms and edit the form. The Form tab uses form tags such as [text* your-name] and [email* your-email]. The asterisk makes a field required. Use the tag buttons above the editor to add fields like a dropdown, checkboxes, or a file upload.

Contact Form 7 form editor in the WordPress dashboard showing form tags
The Contact Form 7 editor. Each field is a form tag, and the asterisk marks a required field.

Step 3: Set up the Mail tab

In the Mail tab, set:

  • To: the address that should receive messages.
  • From: an address on your own domain, such as [email protected]. Using a Gmail or Yahoo address here often causes messages to fail or land in spam.
  • Additional headers: Reply-To: [your-email], so you can reply directly to the visitor.

The Contact Form 7 documentation explains every mail setting.

Step 4: Add the form to a page

Save the form and copy its shortcode, or use the Contact Form 7 block in the editor. Paste it into your Contact page and publish.

Simple contact form with name, email, subject and message fields on a WordPress page
A simple contact form with name, email, subject, and message fields.

Option 2: Create a Form with a Drag-and-Drop Builder

Builders like WPForms Lite, Ninja Forms, and Formidable Forms work in a similar way:

  1. Install and activate the plugin.
  2. Start a new form from the “Simple Contact Form” template, or a blank form.
  3. Drag fields in or out, and mark the ones that are required.
  4. In the form’s Notifications settings, set the recipient, sender, and reply-to address.
  5. In Confirmations, choose a thank-you message or redirect to a thank-you page.
  6. Add the form to a page with the plugin’s block.

Most builders also store entries in the database, so you have a copy if an email goes missing. Check whether that feature is included in the free version of the plugin you choose.

Make Sure Form Emails Arrive

By default, WordPress sends email through your server’s PHP mail function. Many hosts restrict it, and messages often end up in spam or never arrive. The reliable fix is to send through SMTP or an email delivery service with a plugin such as WP Mail SMTP, and to set up SPF, DKIM, and DMARC records for your domain.

Our guide on WordPress not sending emails walks through the full fix. Always send a test message after any change.

Stop Spam Submissions

Public forms attract spam bots. Use at least one of these:

  • CAPTCHA: Google reCAPTCHA or Cloudflare Turnstile. Many form plugins support one or both.
  • Akismet: filters spam by checking submissions against Automattic’s spam service.
  • Honeypot field: a hidden field that bots fill in and humans don’t.

Our guide to WordPress comment spam prevention covers the same tools for comments.

Privacy and Accessibility

A contact form collects personal data, so:

  • Collect only what you need. Name, email, and message are usually enough.
  • Explain how you use the data in your privacy policy, and link to it near the form.
  • If you store entries, delete old ones you no longer need.
  • Serve the form over HTTPS. See how to add SSL to WordPress.

For accessibility, give every field a visible label, mark required fields clearly, and make sure error messages explain what to fix. The W3C forms tutorial covers the details.

Track and Improve Your Form

Count submissions as a goal in Google Analytics 4, either from a thank-you page or a form event. Our guide on how to add Google Analytics 4 to WordPress explains the setup. Keep forms short, because every extra field gives visitors a reason to leave.

For other uses, a form plugin can also power support requests. If you need full ticket tracking, see our guide to WordPress support ticket systems. To send form contacts to an email list, see integrating the Constant Contact API with WordPress.

Common Mistakes

  • Using a free email address as the sender. Use an address on your own domain.
  • Never testing the form. Send a test message after setup and after major updates.
  • No spam protection. One spammy form can flood your inbox in a day.
  • Asking for too much information. Long forms get fewer submissions.
  • Relying only on email. Turn on entry storage where available, so messages aren’t lost.

FAQ

Can I create a contact form in WordPress without a plugin?

Not with WordPress core alone, because it has no built-in contact form block. You could code a form yourself, but you’d have to handle validation, security, and spam. A plugin is safer and faster.

What is the best free contact form plugin for WordPress?

Contact Form 7 is fully free and very widely used. WPForms Lite is easier for beginners because of its drag-and-drop builder.

Why am I not receiving contact form emails?

Usually because the server’s mail function is blocked or messages are marked as spam. Set up SMTP, use a sender address on your domain, and add SPF and DKIM records.

How do I stop spam on my contact form?

Add reCAPTCHA or Turnstile, enable Akismet, or use a honeypot field. Combining two methods works best.

Do I need a privacy notice for a contact form?

If you collect personal data, explain how you use it in your privacy policy and link to it near the form. Check the rules that apply in your country.

The Bottom Line

Creating a contact form in WordPress is quick: install a form plugin, build a short form, and add it to your Contact page. The steps that make it work well are reliable email delivery through SMTP, spam protection, and a clear privacy notice. Test the form after setup and after updates.

Sources & Further Reading

Articles are editorially reviewed by Jackober and factual claims are checked against cited sources.

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like