Title: shortcode for php template file
Last modified: August 20, 2016

---

# shortcode for php template file

 *  Resolved [makingmysite](https://wordpress.org/support/users/makingmysite/)
 * (@makingmysite)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/shortcode-for-php-template-file/)
 * hi there
    1st of all you´ve a sensational plugin!!
 * I´ve one question: how can I include one of the custom post blocks directly into
   my php template file?
 * thx a lot
    best regards
 * [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/shortcode-for-php-template-file/#post-3586494)
 * You can insert the content block in your template file by using do_shortcode:
   [http://codex.wordpress.org/Function_Reference/do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)

Viewing 1 replies (of 1 total)

The topic ‘shortcode for php template file’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/shortcode-for-php-template-file/#post-3586494)
 * Status: resolved