Contact Form 7
[resolved] use of a shortcode plugins in a form (2 posts)

  1. antoine33
    Posted 3 years ago #

    I want to know how to use a shortcode in a contact form 7.
    I want to use a shortcode generated by my PHP exec plugin.
    But when I put it in my shortcode form contact form 7. It is not executed as a shortcode but simply displayed as text in my form.


  2. avipr
    Posted 3 years ago #

    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.
    Hope it will help you.

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