Title: PHP within Template
Last modified: February 28, 2019

---

# PHP within Template

 *  anonymized-5761652
 * (@anonymized-5761652)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-within-template/)
 * I would like to include php code within the template such as date and time, but
   all I get is the php code and not the actual date and time. Is it possible to
   include php code within the template. I see that I can put the same code in a
   page or post and the php code is displayed correctly.
 * Thanks in advance – Sam

The topic ‘PHP within Template’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: anonymized-5761652
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-within-template/)
 * Status: not resolved