• Resolved aboudard

    (@aboudard)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    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

    Thread Starter aboudard

    (@aboudard)

    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 !!

    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??

    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.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Template integration ?’ is closed to new replies.