Title: Template integration ?
Last modified: August 21, 2016

---

# Template integration ?

 *  Resolved [aboudard](https://wordpress.org/support/users/aboudard/)
 * (@aboudard)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/template-integration/)
 * 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/](http://wordpress.org/plugins/mailchimp-for-wp/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/template-integration/#post-3998051)
 * 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](https://wordpress.org/support/users/aboudard/)
 * (@aboudard)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/template-integration/#post-3998052)
 * 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 !!
 *  [etellewyn](https://wordpress.org/support/users/etellewyn/)
 * (@etellewyn)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/template-integration/#post-3998192)
 * 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??
 *  [etellewyn](https://wordpress.org/support/users/etellewyn/)
 * (@etellewyn)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/template-integration/#post-3998193)
 * 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.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [etellewyn](https://wordpress.org/support/users/etellewyn/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/template-integration/#post-3998193)
 * Status: resolved