Do you want to create a MailerLite form in WordPress?
If you’re using MailerLite for your email campaigns, it’s a good idea to connect your WordPress forms with your MailerLite account.
In this article, we’ll show you how to create a MailerLite form in WordPress to easily manage your subscribers.
Does MailerLite Work With WordPress?
Yes, MailerLite works with WordPress. You can integrate your MailerLite account with WordPress plugins like WPForms.
This way, you can create signup forms for your WordPress site that let you easily transfer your leads from forms to your MailerLite account.
How to Create a MailerLite Form in WordPress
It’s fairly simple to build a MailerLite form in WordPress. All you need to do is follow the steps below:
In This Article
- 1. Get a MailerLite Compatbile Form Plugin (WPForms)
- 2. Activate the MailerLite Addon
- 3. Connect WordPress Forms With MailerLite
- 4. Configure Field Settings in WPForms
- 5. Map Custom MailerLite Fields to WordPress Form Fields (Optional)
- 6. Define Rules for Sending Contacts to MailerLite (Optional)
- 7. Embed Your MailerLite Form in WordPress
Let’s dive right into it.
Note: The tutorial below assumes that you already have a MailerLite account. If not you can get started with MailerLite for free.
1. Get a MailerLite Compatbile Form Plugin (WPForms)
First of all, you need a contact form plugin for WordPress that has a native MailerLite integration.
WPForms is the best WordPress form plugin that connects easily with MailerLite. With WPForms Pro, you get tons of features like conditional logic, various marketing integrations, as well as the MailerLite addon.
You can see this guide on installing WPForms on your site for help. After the plugin is active on your site, move on to the next step.
2. Activate the MailerLite Addon
While WPForms Pro includes the MailerLite addon, you’ll still need to enable it on your site in order to connect WPForms with MailerLite.
To do this, navigate to WPForms » Addons from your WordPress dashboard.
On this addon page, look for the MailerLite addon. Then click on the Install button under it.
It will only take a couple of seconds for the MailerLite addon to install and activate on your site (the status will read “Active” when it’s done).
Excellent! Now that the MailerLite addon is active, we can start setting up the integration.
3. Connect WordPress Forms With MailerLite
From your WordPress admin area, click on WPFoms » Settings. On the horizontal tab, select Integrations.
Here find MailerLite and click on it to expand options. Then click on Add New Account.
For this MailerLite integration, you’ll need to get your MailerLite API key.
Head over to your MailerLite account dashboard and then click on Integrations. Under the MailerLite API, click Use.
Press the Generate New Token button.
Enter a name for your token (it can be anything) and press the Create Token button.
Now Copy the token and return to the WPForms Integrations settings page.
Insert the API token in the MailerLite API key field. Your connection will also need a nickname, which can be any random name you’d like to give it.
Press Connect to MailerLite when you’re done.
You should now see a green Connected status appear.
With this, we can begin creating WordPress forms that can communicate with your MailerLite account.
4. Configure Field Settings in WPForms
From your WordPress dashboard, navigate to WPForms » Add New.
Name your form then pick a template from WPForms’ 500+ ready-made form templates. We’re going to use the Newsletter Signup Form template for this tutorial (but you’re free to use any that’s appropriate for your needs).
After selecting a template, the WPForms form builder screen will open. You can use the drag and drop editor to customize your MailerLite form and add new fields to it.
To connect MailerLite with this form, click on the Marketing option on the left of the interface. Select MailerLite and press the Add New Connection button.
Enter a connection nickname and then click OK.
Now, use the dropdowns to configure your MailerLite connection with WPForms. Here are the main settings you’ll find:
Note: Fields marked by an asterisk (*) are mandatory.
- Select Account*: Use this dropdown to select your MailerLite account by its nickname
- Action To Perform*: Choose the action you want to automate when a lead submits your form (Subscribe, Unsubscribe, or Delete)
- Email*: This allows you to choose the email field from your WordPress form so you can match it correctly with the email field in your MailerLite subscriber area
- Type*: Choose which list you’d like new contacts to be added to (Active, Unsubscribed, or Unconfirmed)
- Group: Assign contacts to different interest groups you’ve already created in MailerLite.
These basic settings are enough to get your WPForms and MailerLite connection working.
But this MailerLite addon provides further options you can take advantage of.
5. Map Custom MailerLite Fields to WordPress Form Fields (Optional)
MailerLite gives you a lot of flexibility when it comes to subscriber management.
If you’d like to collect more detailed information from each contact, you can create additional fields in WPForms and map these to custom fields in the subscriber management area of your MailerLite account.
Simply use the dropdowns to match your MailerLite custom field names with the form fields you’ve created in WPForms.
As an example, we’ve mapped the name fields from WPForms to MailerLite.
You add more field mappings by pressing the blue plus (+) button.
Let’s now take a look at how conditional logic helps give you more control over which contacts get sent to your MailerLite subscriber list.
6. Define Rules for Sending Contacts to MailerLite (Optional)
In some cases, you may only wish to add a contact to your mailing list depending on the users’ preferences. WPForms includes a powerful conditional logic feature that lets you change the behavior of the integration based on user responses.
For example, you can add a Checkboxes field to your form and use it to determine if a lead wishes to receive your newsletter.
We’ve only added a single choice for the Checkboxes field for this example, which we can use to determine if a user wishes to join our newsletter.
Now, head over to Marketing » MailerLite in the form builder and toggle on the Enable Conditional Logic option.
Here, we’re going to set a rule which requires that a connection should only be processed if the Newsletter Signup option is checkmarked. This is extremely simple to do using dropdowns as shown below.
We’re now ready to launch the form on our website!
Don’t forget to press Save on the top-right of the form builder before proceeding.
7. Embed Your MailerLite Form in WordPress
Ready to publish your form? Click on the Embed button on the top-right of the form builder screen.
WPForms will now ask you if you’d like to add your new MailerLite form to a new page or within an existing page. For this example, we’ll go with the Create New Page option.
Then, give your new page a name and click on the Let’s Go button.
When you press the button, you’ll be redirected to your WordPress block editor for a new page. Within the page, you can see your form already embedded.
You can edit any other elements of the page like you normally do your editing in WordPress. Once you’re happy with how the page looks, press the Publish button.
It’s a good idea to test if the integration is working properly. You can send a test entry yourself both before and after a form is published and see if the data is sending correctly from your WordPress form to your MailerLite account.
After submitting your test entry, open your MailerLite account and check if you’ve received the data from WPForms.
And that’s it! Now you know how to create a MailerLite form in WordPress.
Next, Explore Email Plugins for WordPress
Behind every successful WordPress website, there are multiple email plugins enabling you to reach your marketing goals.
We’ve carefully selected a list of the top email plugins that can help grow your email list, improve deliverability, and send notifications to help you stay on top of everything.
And if you’re wondering how much it would cost to get started with an email marketing campaign, here’s our comprehensive guide to the costs of email marketing.
Also, if you’d like to learn about all the many things you can do with WPForms, you might like to check out our guide on creating emoji rating scales in WordPress to gather customer feedback in a fun, interactive way!
Ready to build your form? Get started today with the easiest WordPress form builder plugin. WPForms Pro includes lots of free templates and offers a 14-day money-back guarantee.