Learn how to build a contact form on your WordPress website using the free plugin Contact Form 7
Related: Learn more about WordPress
How to get the most out of Contact Form 7
A contact page with only an address and a phone number is a missed chance. In this tutorial I add a free contact form to my WordPress contact page with the plugin Contact Form 7. First I place the default form and test it. Then I take it a step further and build my own form with placeholders, a phone number field, a drop down menu and a file upload, and I make sure all of that arrives in my email.
Good to know: I recorded this video in 2019, so the WordPress and plugin screens may look a bit different today. The way Contact Form 7 works with form tags and mail tags is still the same idea. You can also watch my other Contact Form 7 tutorial, or my newer video where I create a working contact form using Claude.
Install Contact Form 7 and add the form
- In your WordPress backend go to Plugins, Add New and search for Contact Form 7. It is free and has been downloaded more than a million times.
- Install and activate it.
- Go to the new Contact menu item. Next to the default form you see a shortcode. Select it and copy it.
- Edit your contact page, paste the shortcode and click Update.
Now your page shows a form with name, email, subject and message. I filled it in, sent it and got the message “your message was sent successfully”. In my Gmail the email arrived with my name, email, subject and message body. So the basic version works right away.
Add a field: form tags and mail tags
Open the form (Contact Form 1) and you see two important tabs: Form and Mail. The Form tab is what visitors see. The Mail tab is the email you receive.
To add a phone number I used the tel button, named the field “phone-number” and inserted the tag. If you put an asterisk after a field type, the field becomes required. I wanted the phone number to be optional, so no asterisk.
Here is the most important tip of this tutorial: every field you add in the Form tab also needs its tag in the Mail tab. I copied the phone number tag, went to Mail and pasted it into the message body. After saving and sending a test, the phone number showed up in my email. If you forget this step, the visitor fills in the field, but you never see it.
Build your own form from scratch
Next I removed everything and built a new form. For each field I checked Use this text as the placeholder of the field. Then the label is written inside the field itself, so your form takes up less space. These are the fields I added:
- Name: a text field, required.
- Email: an email field, required.
- Website: a text field with “Website” as placeholder.
- Phone number: a tel field.
- Drop down menu with three options: ask a question, meet you in person, get an offer. You can allow multiple selections if you want.
- Text area with “Type your message here”.
- File upload with a size limit of 10 megabytes and only PNG and JPG allowed.
- Submit button with the text “Send”.
After saving I refreshed the page. It looked nice, but I put the submit button on a new line and added an extra line between fields. Small layout changes like that make the form easier to read.
Set up the Mail tab
- In From, drag in the name tag and the email tag of the visitor.
- In To, set the email address where you want to receive the messages.
- My new form has no subject field, so I typed a fixed subject: “Message from” plus my company name.
- Set Reply-To to the email tag, so you can reply straight to the visitor.
- In the message body, add the tags for phone number, website, the drop down choice and the text area.
- Scroll down to File attachments and add the tag of the upload field.
Then test it. I filled in everything, chose “meet you in person”, attached a file and sent it. In Gmail I got all the fields, my choice, the message and the attachment. When I clicked reply, it went to the email address from the form.
Frequently asked questions
How do I make a field required in Contact Form 7?
Add an asterisk right after the field type in the tag, for example email followed by an asterisk. You can also tick the required option when you create the tag.
Why does a field not show up in my email?
You added it to the Form tab but not to the Mail tab. Copy the exact same tag into the message body of the Mail tab and save.
Can visitors send files with Contact Form 7?
Yes. Add a file field, set a size limit and file types, and put its tag under File attachments in the Mail tab.
Is Contact Form 7 free?
Yes, it is a free plugin. For a full beginner website setup, see my WordPress tutorial.



Hallo Ferdy,
Ik heb vele van jouw tutorials met interesse gezien op youtube en jouw website. Zelf heb ik een website voor mijn zwager in elkaar gezet maar kom hierbij een uitdaging tegen die waarvoor ik de oplossing nog niet heb kunnen vinden. Mogelijk dat jij mij verder kan helpen?
Ik heb “Contact Form 7” gebruikt voor het toepassen van een contact formulier. In het gebruikte thema van de website zit een transformatie in het lettertype die er standaard voor zorgt dat elk woord met een hoofdletter word geschreven. Dit kan ik aanpassen en heb dat overal ook gedaan behalve in het formulier. De titels van de velden dan weer wel maar de inhoud, dat wat de mensen in de velden invullen niet. Heb jij enig idee waar dat aan zou kunnen liggen en waar ik dat zou kunnen aanpassen?
Ik zou je willen uitnodigen te kijken op de (voorlopige) website op https://hugoc7.sg-host.com/contact/ maar snap dat je niet zomaar elke aangegeven link volgt. Ik hoop toch dat je eventueel een idee hebt voor mijn probleem 😉
Met vriendelijke groet,
Hugo Commandeur
Hi Ferdy, I am 65 years old and run a non-profit organisation in Kimberley, South Africa. I enrolled with your Udemy web-design course last year and feel very proud of the website that I have made.
Your course was truly amazing – thank you.
The website looks great on my computer but a friend told me that it is totally out of line on her computer. What could be the reason for this?
I would be very grateful if you could comment on my website and share your thoughts on how I could improve it or let me know what is not right with it. I need the website to market our organisation.
Thank you, Ferdy.