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
    
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
add comment

3 Answers 3

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
add comment
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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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