Bummer! This is just a preview. You need to be signed in with a Treehouse account to view the entire video.
A Simple Contact Form1:49 with Zac Gordon
Before we move into more complex WordPress forms, we will use the Super Simple Contact Form plugin to install, setup and test a simple contact form.
To get started working with forms in WordPress, let's set up a simple contact form plugin.
The plugin that we'll be using for this is called the Super Simple Contact Form.
Once we find it, we can install it, activate it, and then to use this is super simple.
As the plugin says, all you have to do is add the short code 'contact' to your page,
and there are no options.
Let's try coming into our pages, clicking on contact,
adding a short code of contact, updating, and then viewing our page,
and we can see that we have a contact form right here.
Of course, you could go and style this however you want by using the Inspector,
but we're going to skip over this process for now.
Now one thing you'll notice is that if you try to fill this out
and send it, it'll tell you that the message was sent,
but because we're running the site on our local server,
which doesn't have email set up, our message won't actually send out.
So it's important when testing email that once the site is on a live server,
you retest this to make sure that it really works.
The pro of this plugin is that it's super simple to use.
The downside, especially compared with the plugin we're about to look at,
is that we don't have an opportunity to customize the form, or save those entries within WordPress.
You need to sign up for Treehouse in order to download course files.Sign up