Title: PHP code in wordpress posts?
Last modified: August 19, 2016

---

# PHP code in wordpress posts?

 *  Resolved [bensheffield](https://wordpress.org/support/users/bensheffield/)
 * (@bensheffield)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-posts/)
 * Hey guys.
 * I’ve been looking at having dynamic content on a single wordpress post, and I
   was wondering if it’s possible to include php code. I’ve disabled the WYSIWYG
   editor and the RTE editor, but my php tags still get stripped out when I post.
 * I’ve spoken to someone else, and he mentions that I can stop my posts being filtered
   by editing kses.php, but I’m not sure which parts of that file to change.
 * Any ideas?

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

 *  [churchthemer](https://wordpress.org/support/users/churchthemer/)
 * (@churchthemer)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-posts/#post-880479)
 * By default you cannot execute php code in a wordpress post. Check out the PHP-
   EXEC plugin [here](http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/).
 * Hope that helps.
 *  Thread Starter [bensheffield](https://wordpress.org/support/users/bensheffield/)
 * (@bensheffield)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-posts/#post-880484)
 * Excellent, I got it working. Thanks for the help.

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

The topic ‘PHP code in wordpress posts?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bensheffield](https://wordpress.org/support/users/bensheffield/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-posts/#post-880484)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
