Title: PHP code instead of shortcode
Last modified: February 1, 2018

---

# PHP code instead of shortcode

 *  [lapd](https://wordpress.org/support/users/lapd/)
 * (@lapd)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-6/)
 * Hi!
 * Is it possible to put the code for this plugin directly to the theme template
   file and what would that snippet look like? I would then use advanced custom 
   fields to fill in the necessary ID.
 * Regards,
    Matej

The topic ‘PHP code instead of shortcode’ is closed to new replies.

 * ![](https://ps.w.org/email-before-download/assets/icon-256x256.jpg?rev=1813522)
 * [Email Before Download](https://wordpress.org/plugins/email-before-download/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-before-download/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-before-download/)
 * [Active Topics](https://wordpress.org/support/plugin/email-before-download/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-before-download/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-before-download/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [lapd](https://wordpress.org/support/users/lapd/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-6/)
 * Status: not resolved