How do I create a contact form in WordPress?
Applies to: WordPress.org (self-hosted)
Last updated: May 2025
Problem
You want visitors to be able to reach you through your website—without displaying your email address publicly—but you’re not sure how to build or embed a contact form.
Solution
The easiest way to add a contact form in WordPress is by using a form plugin. These plugins allow you to create forms without coding, and include features like email notifications, spam protection, and file uploads.
Step-by-Step: Create a Contact Form with a Plugin
Recommended Plugin: WPForms (Lite)
- Go to Plugins > Add New
- Search for WPForms
- Click Install Now, then Activate
Create Your First Form
- Go to WPForms > Add New
- Choose a template (e.g., Simple Contact Form)
- Use the drag-and-drop builder to:
- Add name, email, message fields (or others like phone, dropdowns, etc.)
- Rearrange fields by dragging
- Click Save
Configure Form Settings
- Go to the Settings tab inside the form editor
- Set the confirmation message or redirect page
- Go to Notifications to set the email address where submissions will be sent (default is admin email)
Add the Form to a Page or Post
- Open the page or post where you want the form
- Click the + (Add Block) button
- Select the WPForms block
- Choose your form from the dropdown
- Update or publish the page
✅ Your form is now live.
Alternative Form Plugins
- Contact Form 7 – Free and very flexible (manual styling, shortcode-based)
- Ninja Forms – Drag-and-drop with extensions
- Formidable Forms – Great for complex or advanced forms
- Gravity Forms – Premium plugin with powerful integrations
Tips
- Use Google reCAPTCHA to block spam (WPForms and others support this)
- Test your form after publishing to ensure submissions are delivered correctly
- Use a plugin like WP Mail SMTP to improve email deliverability
- Always include a privacy notice if collecting personal data (for GDPR compliance)





