Title: php inside a post?
Last modified: August 18, 2016

---

# php inside a post?

 *  [amirs](https://wordpress.org/support/users/amirs/)
 * (@amirs)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/php-inside-a-post/)
 * Hi. I’d like to use a php ‘include’ inside the body of my post. So for example,
   I’d like to say:
 * <?php include(‘file.php’) ?>
 * inside my post. But when I try doing this, WP immediately changes the <?php to
   <? php, invalidating it as php code…and it the only thing that shows up in the
   post body is this:
 * <? php include(‘file.php’) ?>
 * Is there a way to accomplish what I want (i.e. use php statements within a post
   body)?
 * Thanks,
    Amir

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/php-inside-a-post/#post-278568)
 * Search for runPHP and PHPexe
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/php-inside-a-post/#post-278573)
 * Surprised that you did not also come up with QuickPHP during your initial searching
   of the forum.
 *  [Ryan Duff](https://wordpress.org/support/users/ryanduff/)
 * (@ryanduff)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/php-inside-a-post/#post-278611)
 * I think moshu was refering to [wp-exec](http://www.navidazimi.com/projects/wp-exec/)
   by Navid Azimi
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/php-inside-a-post/#post-278613)
 * Hah, failing memory (getting older 🙂
    it’s PHP Exec I was thinking of [http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/](http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/)

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

The topic ‘php inside a post?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/php-inside-a-post/#post-278613)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
