Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there an elegant way (without hacking the plugin's code) to integrate a Contact Form 7 contact form to Mailchimp, so I can have a checkbox that when selected would register the email to a Mailchimp list?

Thank you

share|improve this question

closed as off-topic by birgire, kaiser Jul 28 at 14:28

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
I've been trying to solve this one for days and some genius has made a plugin which made it so simple! No mucky code even better. :) wordpress.org/plugins/contact-form-7-autoresponder-addon-plugin/… –  user36964 Aug 22 '13 at 6:41

3 Answers 3

You can use my plugin called MailChimp for WordPress to do this.

When installed, you can select one or multiple lists in the plugin settings and use the following shortcode inside your Contact Form 7 templates.

[mc4wp_checkbox "Your label text"]

It will render a checkbox and when checked, subscribe the given email address to the MailChimp lists you selected.

PS. I realize this question is over 2 years old. Just answering in case anyone else stumbles across it. Some answers had been given but I am pretty sure this is by far the easiest way to do it.

share|improve this answer
    
This is pretty sweet, nice work! –  Jeremiah Prummer May 22 at 2:56
    
Do you happen to know of a way to do this without the checkbox? I have a contact 7 contact form which is a "signup to the mailing list form", so I don't really want a check box to confirm, just want the user to be signed up when they click signup..? –  George Green Oct 9 at 15:46
up vote 1 down vote accepted

This is what finally worked for me. The code needs to be updated tho. I don't have time now to get back to the refactored code but if someone requests it I will do it in due time.

share|improve this answer

This might work for you...

http://wordpress.org/extend/plugins/newsletter-sign-up/

You'll still possibly have to modify the contact form's files but only to do this:

"You can manually place the checkbox by calling inside the form tags of your comment form."

share|improve this answer
    
It removed the code, this is the function you call:<?php if(function_exists('nsu_checkbox')) nsu_checkbox(); ?> –  johnny_n Nov 20 '11 at 1:21
    
A little late but as I am the author of the plugin you mention, I just wanted to give a quick heads up that a better way would be to use my plugin that is developed specifically for MailChimp: MailChimp for WordPress. It integrates with Contact Form 7 automatically, you can use [mc4wp_checkbox "Your label text"] inside your CF7 templates. –  Danny Nov 15 '13 at 13:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.