Mailchimp to WordPress: Every Setup Method Explained
In this article
Connecting Mailchimp to WordPress lets you sync your site’s forms, e-commerce data, and audience tags automatically, so you can send targeted emails without manual list management. This guide covers every current method: the official Mailchimp plugin, third-party form plugins, and direct API integration. You’ll need a WordPress site (self-hosted or managed) and a Mailchimp account with API access.
What You'll Need
- A WordPress admin account (to install plugins and edit theme files)
- A Mailchimp account (free tier works)
- Your Mailchimp API key (found under Account → Extras → API keys)
- FTP or file manager access (for the API method)
Step-by-Step
Method 1: Official Mailchimp Plugin (Recommended)
- In your WordPress admin, go to Plugins → Add New.
- Search for “Mailchimp for WooCommerce” (or “Mailchimp” – the official plugin is by Mailchimp).
- Click Install Now, then Activate.
- A setup wizard will appear. Click Connect and log in to your Mailchimp account when prompted.
- Select the audience (list) you want to sync with your site.
- Choose your sync settings: subscribe checkboxes, opt-in behavior, and whether to sync existing customers.
- Click Finish Setup. The plugin will now sync your WordPress users, orders, and form submissions automatically.
Method 2: Third-Party Form Plugin (e.g., WPForms, Contact Form 7, Formidable)
- Install and activate a form plugin that supports Mailchimp integration (most popular ones do).
- In the form plugin’s settings, find the Mailchimp add-on or integration tab.
- Enter your Mailchimp API key (you’ll typically find this in the plugin’s integration settings).
- Select the audience you want new form submissions to join.
- When editing a form, add a “Mailchimp” action or field – usually a checkbox for “Subscribe to newsletter.”
- Map your form fields (e.g., email, first name) to Mailchimp’s merge tags.
- Test the form by submitting a dummy entry and checking if it appears in your Mailchimp audience.
Method 3: Direct API Integration (Custom Code)
- Generate a Mailchimp API key: Log in to Mailchimp → Account → Extras → API keys → Create Key. Copy it.
- In WordPress, create a child theme or use a custom plugin file (e.g.,
mailchimp-custom.php). - Use the WordPress HTTP API to call Mailchimp’s REST API. Example code snippet:
$api_key = 'YOUR_API_KEY'; $dc = substr($api_key, strrpos($api_key, '-') + 1); $url = 'https://' . $dc . '.api.mailchimp.com/3.0/lists'; $response = wp_remote_get( $url, array( 'headers' => array( 'Authorization' => 'apikey ' . $api_key, ), ) ); - To subscribe a user, POST to
/lists/{list_id}/memberswith the email and status (“subscribed” or “pending”). - Hook this into your form submission or user registration via
add_action. - Test with a real email address, then check your audience in Mailchimp.
Common Mistakes
- Using the wrong API key region: Your API key ends with a server prefix (e.g., us19). If you call the wrong endpoint, you’ll get a 404.
- Forgetting to set the “status” field: When adding a member via API, you must specify “subscribed” or “pending”. Omitting it causes an error.
- Double opt-in confusion: If your audience requires double opt-in, new subscribers get a confirmation email. If you expect them to appear instantly, you’ll think it’s broken.
- Mixing up list ID vs. audience name: The list ID is a string of letters and numbers, not the audience name. Find it in Mailchimp’s Audience settings.
- Not clearing cache: After connecting, WordPress caching plugins may show stale settings. Clear all caches.
Tips
- Always test with a “pending” status first to avoid accidentally sending emails to someone who didn’t opt in.
- Use Mailchimp’s built-in “Audience” fields for GDPR compliance – add a consent checkbox to your forms.
- For WooCommerce, the official plugin syncs purchase data, which powers product recommendations and abandoned cart emails.
- If you’re using a page builder, check if it has a native Mailchimp block – many do, and they’re simpler than custom code.
- Keep your API key secret – anyone with it can access your entire Mailchimp account.
Troubleshooting
- Connection fails: Verify your API key is correct and that you’re using the right server endpoint. Check your firewall or security plugin – it may be blocking outbound requests.
- Subscribers not appearing: Check if your audience has double opt-in enabled. Also check Mailchimp’s “Audience” for any “pending” members. If using a form plugin, ensure the action is set to “Subscribe” not “Unsubscribe”.
- Error “Resource not found”: This usually means the list ID is wrong or the API key doesn’t have permission for that audience. Double-check both.
- Plugin conflict: Disable other plugins one by one to see if one is interfering with the Mailchimp integration.
- Rate limits: If you’re syncing a large list, you may hit Mailchimp’s API rate limit. Wait a few minutes and retry, or use batch operations.
Frequently Asked Questions
Do I need a paid Mailchimp plan to connect to WordPress?
No, the free plan works, but you’re limited to 500 contacts and some features like automation are restricted.
Will connecting Mailchimp slow down my WordPress site?
No, the official plugin works in the background. However, custom API calls on every page load could slow things down – cache the responses or use cron jobs.
Can I connect multiple Mailchimp audiences to one WordPress site?
Yes, but you’ll need separate integrations for each – either multiple forms with different audiences or custom code that picks the audience based on the form.
How do I remove the Mailchimp connection from WordPress?
Deactivate and delete the plugin. For custom code, remove the code snippet. Your Mailchimp audience data remains intact.
What if I use a page builder like Elementor?
Elementor has a Mailchimp widget that works without extra plugins – just connect your API key in Elementor’s settings.
Can I sync WordPress user registrations to Mailchimp automatically?
Yes, the official plugin does this by default for WooCommerce customers. For regular users, you’ll need a custom snippet or a membership plugin that supports Mailchimp.