WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. typoerorr
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/insert-php/

  2. WillBontrager
    Member
    Plugin Author

    Posted 1 year 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.

    Will

  3. WillBontrager
    Member
    Plugin Author

    Posted 12 months 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.

    Will

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.