Title: PHP code gets stripped by wordpress
Last modified: August 30, 2016

---

# PHP code gets stripped by wordpress

 *  Resolved [Cat](https://wordpress.org/support/users/mvankampen/)
 * (@mvankampen)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-code-gets-stripped-by-wordpress-1/)
 * Hi,
    When I have inserted some PHP code into the code of the page and then save
   it, WordPress strips the PHP code and therefore it doesn’t work. I know that 
   if I only use the code-editor and not the wysiwyg-editor this would not happen,
   however while I don’t mind working that way, my authors do. Is there a solution
   for this?
 * [https://wordpress.org/plugins/php-code-for-posts/](https://wordpress.org/plugins/php-code-for-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jamie Fraser](https://wordpress.org/support/users/thejfraser/)
 * (@thejfraser)
 * [10 years ago](https://wordpress.org/support/topic/php-code-gets-stripped-by-wordpress-1/#post-6686603)
 * Hi Cat,
 * I guess the best solution would be to use the snippets?
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘PHP code gets stripped by wordpress’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jamie Fraser](https://wordpress.org/support/users/thejfraser/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/php-code-gets-stripped-by-wordpress-1/#post-6686603)
 * Status: resolved