Contact Form 7
[resolved] Use without shortcode (3 posts)

  1. andrewcilley
    Posted 3 years ago #

    I am wondering if it possible to use the form without the shortcode. I want to put a contact form in the footer.php file so it shows on the footer of my site but if I put the shortcode in that file, it obviously won't work.

    Is there a way around this at all? I tried making a contact form, placing it on a page and taking the code but that didn't work for me.

    You can see what I'm trying to do by going here: http://www.ccapa.org/draft. It is at the bottom of the page.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years ago #

  3. avipr
    Posted 3 years ago #

    I hope @takayuki's answer helped you. The simple method is
    <?php echo do_shortcode( '[contact-form-7 id="1234" title="Contact form 1"]' ); ?>
    <?php echo do_shortcode- is short code function, and
    [contact-form-7 id="1234" title="Contact form 1"] is the name of your contact form.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic