Title: PHP code to insert in a page template
Last modified: August 22, 2016

---

# PHP code to insert in a page template

 *  Resolved [AndreaMaio](https://wordpress.org/support/users/andreamaio/)
 * (@andreamaio)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-code-to-insert-in-a-page-template/)
 * Hi Markus,
    I’m enjoying your plugin but I need to insert the share bottom in
   all pages in my portfolio with the same download file, is it possible insert 
   php code (wpL2g) in my page template?
 * [https://wordpress.org/plugins/wplike2get/](https://wordpress.org/plugins/wplike2get/)

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

 *  Plugin Author [Markus Drubba](https://wordpress.org/support/users/drumba/)
 * (@drumba)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-code-to-insert-in-a-page-template/#post-5270276)
 * 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](https://wordpress.org/support/users/andreamaio/)
 * (@andreamaio)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-code-to-insert-in-a-page-template/#post-5270283)
 * 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](https://wordpress.org/support/users/drumba/)
 * (@drumba)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-code-to-insert-in-a-page-template/#post-5270391)
 * `<?php echo do_shortcode('[l2g]your content[/l2g]'); ?>`
 *  Thread Starter [AndreaMaio](https://wordpress.org/support/users/andreamaio/)
 * (@andreamaio)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-code-to-insert-in-a-page-template/#post-5270482)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wplike2get_91c9e7.svg)
 * [wpLike2Get](https://wordpress.org/plugins/wplike2get/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wplike2get/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wplike2get/)
 * [Active Topics](https://wordpress.org/support/plugin/wplike2get/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wplike2get/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wplike2get/reviews/)

## Tags

 * [php code](https://wordpress.org/support/topic-tag/php-code/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 4 replies
 * 2 participants
 * Last reply from: [AndreaMaio](https://wordpress.org/support/users/andreamaio/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-code-to-insert-in-a-page-template/#post-5270482)
 * Status: resolved