WordPress.org

Support

Support » Plugins and Hacks » Contact Form 7 » [Resolved] [Plugin: Contact Form 7] Include Custom Shortcodes in Form?

[Resolved] [Plugin: Contact Form 7] Include Custom Shortcodes in Form?

  • I have been using Contact Form 7 for some time, but I recently had a problem come up that I couldn’t seem to figure out.

    When generating a form with CF7, I want to include a custom shortcode that I use throughout the rest of my blog. All the shortcode does is insert a styled div. However, when I enter it in the Form editor, it just shows up as [custom-shortcode] on the front end. I am assuming there may need to be a do_shortcode() somewhere inside the CF7 files, but I can’t seem to figure out where.

    Any ideas? I just want to be able to accomplish something like the following:

    <p>Your Name (required)<br />
        [text* your-name] </p>
    
    [custom-shortcode]
    
    <p>Your Email (required)<br />
        [email* your-email] </p>

    Where [custom-shortcode] results in something like <div class="custom-div"></div>.

    Thanks for reading! Any feedback or ideas are appreciated.

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Contact Form 7] Include Custom Shortcodes in Form?’ is closed to new replies.
Skip to toolbar