Support » How-To and Troubleshooting » using shortcode to insert contact form-7

using shortcode to insert contact form-7

  • greetings all,

    im trying to insert contact form-7 into ‘home.php’ using the shortcode.

    below is the code im using:

    <div class=”rightbox”>

    <h3> insert image here </h3>
    <?php echo do_shortcode(“[contact-form-7 id=”188″ title=”Main Contact Form”]”); ?>


    once i insert that code, the webpage will no longer load. anyone know of any solutions?


Viewing 4 replies - 1 through 4 (of 4 total)
  • You need add the short code in editor where ever you want the Contact Us Form No need to add in template.

    Patel’s probably right, but if you really do want to add it to a template, I suspect that your error is not escaping your double quotes.

    So, when php parses that code, it thinks that end of what you’re passing to the function is the beginning of the id attribute. Try this:
    <?php echo do_shortcode('[contact-form-7 id="188" title="Main Contact Form"]'); ?>

    i’m trying to add a jetpack no credit check financing form in my home.php file. i used the id for the page i created the form on and it’s defaulting to standard contact form.
    ideally i want the form fields to be horizontal under the home page slider.

    <?php echo do_shortcode(‘[contact-form id=”226″ title=”No Credit Check Financing”]’); ?>

    customer has been waiting on me so sooner then better. thanks so much

    sorry shortcode for contact form is for reinventyourgenius.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘using shortcode to insert contact form-7’ is closed to new replies.
Skip to toolbar