How to Create a Simple Contact Form with Captcha for WordPress

There are many contact forms available for WordPress but most use a third party captcha service. The contact form on my website uses the following custom plugin that has a basic math captcha, no third party required.

WordPress Guide

How to Add a Contact Form to WordPress

Build a lightweight, mobile-responsive contact form with spam protection from scratch — no third-party plugin required, just a single PHP file and one shortcode.

What You’ll Get

Easy to Use

Install once, then drop the shortcode onto any page or post.

📱

Mobile-Responsive

Looks great and works perfectly on all screen sizes.

🔒

Spam Protection

Built-in math captcha keeps bots out of your inbox.

Lightweight

No bloat — just a clean, fast, functional contact form.

How to Install

1

Open the Plugin File Editor

In your WordPress Admin Dashboard, go to Plugins → Plugin File Editor, or connect via FTP to access your site files directly.

2

Create the Plugin File

Inside the wp-content/plugins folder, create a new file named simons-simple-contact-form.php

3

Paste the Plugin Code

Copy the full PHP code below and paste it into the file you just created.

simons-simple-contact-form.php
Loading...
4

Activate the Plugin

Head to Plugins in your WordPress admin panel, find Simon's simple contact form in the list, and click Activate.

5

Add the Shortcode to Your Page

Edit any page or post and paste the following shortcode exactly where you want the form to appear:

Loading...

🎉 You’re Done!

Your simple, secure, mobile-ready contact form is now live. All messages will be delivered to the admin email address configured in your WordPress settings.

Shopping Basket
Scroll to Top