Title: Custom PHP Code Displayed on Page
Last modified: August 20, 2016

---

# Custom PHP Code Displayed on Page

 *  Resolved [typoerorr](https://wordpress.org/support/users/typoerorr/)
 * (@typoerorr)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-php-code-displayed-on-page/)
 * I am using Code Snippets and Insert PHP together with the Montezuma theme.
 * The pages are able to resolve the PHP to generate dynamic content.
 * However, the interesting thing is that the page also shows my PHP codes after
   the dynamic contents.
 * You can view it [here](http://www.littlegreenwok.sg/here/testphp/)
 * Have everyone encountered this before?
 * [http://wordpress.org/extend/plugins/insert-php/](http://wordpress.org/extend/plugins/insert-php/)

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

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-php-code-displayed-on-page/#post-3610180)
 * Try temporarily deactivating Code Snippets for a quick test. There may be a conflict
   that causes one to run the PHP code and the other to publish it.
 * A note about Insert PHP: The code used in an [insert_php]-[/insert_php] code 
   block needs to be complete in itself. It can’t be depended on to access variables
   declared or assigned outside the code block. Insert PHP works by putting the 
   entire code block into an eval statement.
 * Looking at your test page code, I’m thinking Ajax may be a viable alternative
   to obtain the information and publish it.
 * Will
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/custom-php-code-displayed-on-page/#post-3610307)
 * Insert PHP has had a bug fix. The new version, 1.1, is available as of today.
 * Although I couldn’t duplicate the reported issue, I’m thinking the bug fix will
   have resolved it.
 * Will

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

The topic ‘Custom PHP Code Displayed on Page’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/custom-php-code-displayed-on-page/#post-3610307)
 * Status: resolved