Insert PHP
[resolved] Custom PHP Code Displayed on Page (3 posts)

  1. typoerorr
    Posted 3 years ago #

    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

    Have everyone encountered this before?


  2. WillBontrager
    Plugin Author

    Posted 3 years ago #

    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.


  3. WillBontrager
    Plugin Author

    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Insert PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.