MailChimp for WordPress
[resolved] [closed] Template integration ? (5 posts)

  1. aboudard
    Posted 2 years ago #

    I'm sorry to bug if this has already been solved, I couldn't find an answer to that :
    Can we integrate the code other way that shortcode ? Simply in a template I mean. I did to simply copy the generated code from a widget to see, and it works, but I didn't get the confirmation message in the right place ...
    If there is some solution, thank you anyway !


  2. Danny van Kooten
    Plugin Author

    Posted 2 years ago #

    Hi aboudard,

    Use the following line to show the sign-up form in your theme / template files.

    <?php echo do_shortcode('[mc4wp-form]'); ?>

    Good luck.


  3. aboudard
    Posted 2 years ago #

    Yeah ... I'm stupid ... sorry :|
    Actually I ended up using a sidebar that I can reuse in other places.
    But I do remember the code you just gave here, thank you a lot !!

  4. etellewyn
    Posted 2 years ago #

    I am doing this exact thing but in the live page, all I get is the actual literal shortcode being spit out.

    I have:
    <div class="newsletter">Get Updates and the Free Guide! <?php echo do_shortcode('[mc4wp-form]'); ?></div>

    On the live page I get (html source)
    <div class="newsletter">Get Updates and the Free Guide! [mc4wp-form]</div>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]


    Any ideas??

  5. etellewyn
    Posted 2 years ago #

    Okay sorry never mind, I clicked around and discovered that I have to actually TELL the plugin to use the shortcode before the code above will work.

    If anybody else runs into this, go to "Form Settings" and under "Use form functionality?" click "yes."

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MailChimp for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.