Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Markus Drubba

    (@drumba)

    Hi Andrea,

    yes it is possible. You can use the following code and add the options you need.

    echo do_shortcode('[l2g]');

    Thread Starter AndreaMaio

    (@andreamaio)

    Hi Markus,
    thanks for the quickly replay
    but I don’t understand very well

    Can you say me the correct php syntax

    Should be like this ?

    <?php
    echo do_shortcode(‘[l2g]’);
    <div>my content</div>
    echo (‘[/l2g]’);

    Plugin Author Markus Drubba

    (@drumba)

    <?php echo do_shortcode('[l2g]your content[/l2g]'); ?>

    Thread Starter AndreaMaio

    (@andreamaio)

    Thanks so much
    It’s working perfectly!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP code to insert in a page template’ is closed to new replies.