Add contact to Mailchimp lists and groups

Problem: Need use Contact Form 7 and if user checked special checkbox, data from form pass to given Mailchimp lists and groups.

Add contacts to given Mailchimp lists after send form

Solution: We can use plugin MailChimp for WordPress. Next we should use this code:

<input name="mc4wp-INTERESTS[ac42cwe23s][]" type="hidden" value="ece5cb5ed1" /><!--group name-->
<input name="_mc4wp_lists[]" type="hidden" value="de58a2b77d" /><!--list name-->
<input type="checkbox" name="mc4wp-subscribe" value="1"><span>Sign me up to receive news, press releases, special offers, and events.</span><!--sign me checkbox-->

Sources:

  1. https://kb.mc4wp.com/add-group-choice-cf7-forms/

Leave Comment

Your email address will not be published.