WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Using shortcodes inside a form (1 post)

  1. johnny21a
    Member
    Posted 3 years ago #

    Hello, congratulations on your plugin, it is very useful. I have a question, I am using a template that uses shortcodes to style certain parts of the page, like pretty content boxes, tabs, etc...

    The problem is that I can't use these shortcodes inside a form that I create with your plugin

    I am using the following syntax inside the form :

    <?php echo do_shortcode( '[box] CONTENT [/box]' ); ?>

    but CONTENT doesn't show up in the page. All parts of the form outside this function show up correctly. Is there any way I can use the template's shortcodes inside the form ? I want it to look pretty that's why I need to use them. Thank you...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic