Thanks Lap to help me out.
in the function.php file I have the following code:
add_filter( ‘mc4wp_integration_contact-form-7_subscriber_data’, function( MC4WP_MailChimp_Subscriber $subscriber ) {
// replace “interest-id” with the actual ID of your interest.
$subscriber->interests[“2c28058c4f”] = true;
$subscriber->interests[“6b63fc0e3a”] = true;
// repeat for all interests you want to enable or disable
// $subscriber->interests[ “91lxm10xzl” ] = false;
return $subscriber;
});
Below is the CF7 form
[text* your-firstname class:required placeholder “First Name”]
[text* your-name class:required placeholder “Last Name”]
[email* your-email class:required placeholder “Work Email”]
[text* your-firm class:required placeholder “Company”]
[tel* your-tel class:required placeholder “Phone number”]
[textarea* Answer x50 placeholder “Type in your answer”]
[hidden your-product default:”Training”]
[hidden your-source default:”Web Site”]
[hidden your-campaign default:”LLCR-Competition”]
[acceptance acceptance-831] I have read and accept the Privacy Policy & the Terms & Conditions.
</p>
[captchac anti-spam-captcha fg:#8a4b98 bg:#eeeeee size:m]
[captchar anti-spam-captcha placeholder “Enter the code above”]
[honeypot honeypot-452]
<input type=”hidden” name=”_mc4wp_lists” value=”adcf2d7e65″/>
<input name=”_mc4wp_action” type=”hidden” value=”subscribe” checked=”true”>
<input name=”mc4wp-INTERESTS[f3e323a4bc][]” type=”hidden” value=”6b63fc0e3a” checked=”true”>
[submit “Submit”]
Mailchimp Settings – Mailchimp Settings
-
This reply was modified 6 years, 10 months ago by sianab.
-
This reply was modified 6 years, 10 months ago by sianab.