Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Create a Simple Mail Chimp Sign Up Form

Posted on January 1, 2012 by Pippin in Advanced, External APIs, Member Restricted, Short Codes, Subscriber Only, Tutorials, Writing Plugins 12 Comments
Home» Tutorials » Advanced » Create a Simple Mail Chimp Sign Up Form
mailchimp-sample-tutorial
Tweet
Love It - 3

In this premium-members only tutorial, we're going to take a brief look into working with the Mail Chimp API to create a newsletter sign up form for your WordPress site. The final result will be a complete plugin that you can install on any WordPress site to begin accepting email subscriptions to your Mail Chimp Lists.

You must be logged in and have an active premium membership to view the rest of this content. Register or login from the sidebar.

Tweet Follow @pippinsplugins
email, mail chimp, newsletter, subscribe

12 comments on “Create a Simple Mail Chimp Sign Up Form”

  1. soulmenj says:
    January 2, 2012 at 11:33 pm

    i can’t view this tutorial. i already login in the page but no luck

    Reply
    • Pippin says:
      January 3, 2012 at 12:17 am

      This tutorial is only available to paid subscribers. Check out the Join the Site page for pricing.

  2. bryce says:
    October 3, 2012 at 9:28 am

    Hey Pippin,

    Very awesome :) One question… after users subscribe it’d be good to tell them that it was successful and they’ll receive the verification email.

    Obviously this can be easily achieved by just creating a page that says this and redirecting them there, but how could I have it so that as well as just redirecting the user to the home page, it has the standard mail chimp pop-up saying that the email has been received and that they need to confirm the email they just received? Better yet, a nice AJAX solution would be cool ;)

    Reply
    • Pippin says:
      October 3, 2012 at 6:01 pm

      I added that notification in the official plugin I wrote.

  3. Taleeb Ahmad says:
    December 24, 2012 at 4:43 am

    hi pippen

    Please help me that how i can add additional fields with every post when i am writing the post?

    Reply
    • Pippin says:
      December 24, 2012 at 8:45 am

      I don’t think I understand your question. Can you give an example of what you’re trying to do?

    • Taleeb Ahmad says:
      December 24, 2012 at 9:38 am

      mean that when i creating the post there should be two additional fields where i enter the some data in integer form?

    • Pippin says:
      December 26, 2012 at 10:48 am

      No there are not fields for that. This plugin doe not send emails when posts are published.

  4. hughred22 says:
    March 1, 2013 at 2:46 pm

    Hi Pippin,

    In the pippin_check_for_email_signup() function, instead of just redirecting user back to home page, how can I redirect and trigger a lightbox notification or maybe append some successful text below the input box?

    after
    wp_redirect($_POST['redirect']); exit;

    I just do not know how to trigger a javascript when the redirect back to home page, like a modal (from Twitter Bootstrap) can pop up say “success!”. The function do not pass anything back. And I have no idea how to trigger JS via just URL.

    Something simple can be after successful submit to mailchimp, the page redirect back and a new success right underline the input box. (If it fail, it return the error message?)

    Thanks!

    Reply
    • Pippin says:
      March 2, 2013 at 4:34 pm

      On the success page, check for the “success” query parameter and then echo some inline javascript to trigger the modal if it is present. Make sense?

  5. hughred22 says:
    March 2, 2013 at 6:33 pm

    Then my question will be how to check for the “success” query parameter? Will this be in the function pippin_mailchimp_form? Is there an example I can follow after? The trigger of modal will be
    $(‘#myModal’).modal();

    So will the echo will be:
    echo (‘ $(‘#myModal’).modal(); ‘);

    ??
    Thx!

    Reply
    • Pippin says:
      March 4, 2013 at 8:59 pm

      Yes in that function. You can use this:

      if( isset( $_GET['success'] ) )

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Simple Mail Chimp Sign Up Forms Plugin
  • Mail Chimp Add-On for Easy Digital Downloads
  • Mail Chimp for Restrict Content Pro
  • Preview of Restrict Content Pro

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes

Latest Tutorials

  • Storing Session Data in WordPress without $_SESSION (19)

    The term Session in web development refers to...

  • Test Your Plugins with RTL (1)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

Enter your email to receive automated updates when new posts are published

WP Core Contributions

  • [24316]

View the ticket on Trac.

WP Codex Contributions

  • Function: shortcode exists
  • Function: has shortcode
  • Function: shortcode exists
  • Function: shortcode exists
  • Function: has shortcode

View all 41 changes in the Codex.

Latest Tweets

  • Could not fetch Twitter RSS feed.

Topics

contextual help featured register_setting shortcodes attachments add_options_page Tom McFarlin get_user_meta hook add_shortcode meta box Sugar Event Calendar wp_enqueue_script forms short codes plugin do_action login Related posts authors mail chimp attachment image recent posts post types apply_filters comments short code bbpress taxonomies custom post type Ajax gallery images Stripe taxonomy jquery widgets users add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins