Title: Using Forms in a template
Last modified: May 14, 2020

---

# Using Forms in a template

 *  Resolved [Andrew](https://wordpress.org/support/users/cipes/)
 * (@cipes)
 * [6 years ago](https://wordpress.org/support/topic/using-forms-in-a-template/)
 * I’m pretty impressed at how hard it is to get the constant contact form to be
   output into a template.
 * I’d like to output an email list sign up form into my footer.php. and the classic`
   do_shortcode('[ctct form="869" show_title="false"]');` wordpress function does
   not execute the constant contact shortcode.
 * How do I return the form into a template?
 * I’ve looked the function here `constant_contact_display_form( $formID );` which
   is referenced [here](https://wordpress.org/support/topic/customize-constant-contact/)
   but that is not working either.
 * How can you have a plugin that uses says it uses a ‘Shortcode’. when it actually
   doesnt (else WP do_shortcode() should execute it) AND NOT provide documentation
   on how to output the form into a template??
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-forms-in-a-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [6 years ago](https://wordpress.org/support/topic/using-forms-in-a-template/#post-12835244)
 * Hi Andrew,
 * For the do_shortcode() version, above, you’d need to echo it.
 *     ```
       echo do_shortcode('[ctct form="869" show_title="false"]');
       ```
   
 * Not quite sure what may be going on for the `constant_contact_display_form()`
   version above, but I also don’t know what is in `$formID` in this case. However,
   i do know that that function trickles down into a `get_form()` function in our
   plugin, and it returns empty string if we don’t have a valid integer for the 
   ID, or there’s no post meta for the form. It’s also possible that some of the
   output is being generated, but perhaps not all of it. This one should be self-
   echo’ing, so no need to do `echo constant_contact_display_form( $formID );`
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [6 years ago](https://wordpress.org/support/topic/using-forms-in-a-template/#post-12924061)
 * Did you get this figured out [@cipes](https://wordpress.org/support/users/cipes/)?
 *  Thread Starter [Andrew](https://wordpress.org/support/users/cipes/)
 * (@cipes)
 * [6 years ago](https://wordpress.org/support/topic/using-forms-in-a-template/#post-12935327)
 * I had to echo the do_shortcode[]. My fault! Thank you for that.
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [6 years ago](https://wordpress.org/support/topic/using-forms-in-a-template/#post-12935421)
 * Awesome to hear that things are working now. Hopefully getting plenty of signups
   as well.
 * Let us know if you need anything else.

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

The topic ‘Using Forms in a template’ is closed to new replies.

 * ![](https://ps.w.org/constant-contact-forms/assets/icon-256x256.png?rev=2951825)
 * [Constant Contact Forms](https://wordpress.org/plugins/constant-contact-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/constant-contact-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/constant-contact-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/constant-contact-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/constant-contact-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/constant-contact-forms/reviews/)

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 4 replies
 * 2 participants
 * Last reply from: [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/using-forms-in-a-template/#post-12935421)
 * Status: resolved