• Resolved abcadmin

    (@abcadmin)


    Hello,

    I am creating a landing page and I cannot seem to get the shortcode to work on a page template.

    I found the following PHP code:

    <?php echo do_shortcode( $content ) ?>

    And modified it like so:

    <?php echo do_shortcode( [vfb id='1'] ) ?>

    But with that I get a fatal error. I’d assume I’m not using it correctly. Please help!

    http://ww.wp.xz.cn/plugins/visual-form-builder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    If you go the do_shortcode route, you need to wrap the argument in quotes.

    The Pro version includes a PHP template tag for use in addition to the shortcode.

    Hello abcadmin,

    I used <?php echo do_shortcode( ‘[vfb id=”1″]’ ) ?> and worked…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Insert Short Code Into Page Template’ is closed to new replies.