WordPress.org

Ready to get started?Download WordPress

Forums

Insert PHP
[resolved] Include/require external php code (4 posts)

  1. nirgalo
    Member
    Posted 11 months ago #

    Hi, I used the "include" and "require" directives inside [insert_php] tags in order to include an external PHP file, but the result is that the file gets printed out (echoed) on the page. Any idea how I can actually include PHP files? Thx.

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

  2. WillBontrager
    Member
    Plugin Author

    Posted 11 months ago #

    Hi nirgalo,

    It should work.

    Verify the included and required files are accessible and contain no errors.

    If still no joy, post the code that doesn't work, (including the [insert_php] and [/insert_php] tags). I'll see what I can see.

    Will

  3. nirgalo
    Member
    Posted 11 months ago #

    Thanks Will but I actually created a plugin to put my functions into so I do not need to include files anymore.

  4. WillBontrager
    Member
    Plugin Author

    Posted 10 months ago #

    Gratuitous post to mark thread resolved.

Reply

You must log in to post.

About this Plugin

About this Topic