WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. aboudard
    Member
    Posted 8 months 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 !

    http://wordpress.org/plugins/mailchimp-for-wp/

  2. Danny van Kooten
    Member
    Plugin Author

    Posted 8 months 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.

    Danny

  3. aboudard
    Member
    Posted 8 months 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
    Member
    Posted 8 months 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
    Member
    Posted 8 months 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

About this Topic

Tags

No tags yet.