Title: php include within posts, possible?
Last modified: August 19, 2016

---

# php include within posts, possible?

 *  [tjobbe](https://wordpress.org/support/users/tjobbe/)
 * (@tjobbe)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/php-include-within-posts-possible/)
 * Hey eevryone.
 * Is there a way to include files within posts? i.e using some sort of php include
   prompt?

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

 *  [ehab](https://wordpress.org/support/users/ehab/)
 * (@ehab)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/php-include-within-posts-possible/#post-675264)
 * Why not 😉 ?
 * Go ahead and try it out.
 * Just add the following line to where ever you want.
 * If the file is in your themes directory
 *     ```
       <?php include (TEMPLATEPATH . "/searchform.php"); ?>
       ```
   
 * Else where,
 *     ```
       <?php include ("URL to your .php file"); ?>
       ```
   
 *  [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * (@adamrbrown)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/php-include-within-posts-possible/#post-675266)
 * Hmm. Ehab, I’m not sure that’s what tjobbe means. He wants to type PHP into the
   post and have it execute.
 * Tjobbe, did you search plugins? There are a few for this:
 * [http://wordpress.org/extend/plugins/search.php?q=php](http://wordpress.org/extend/plugins/search.php?q=php)

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

The topic ‘php include within posts, possible?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/php-include-within-posts-possible/#post-675266)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
