Support » Plugin: Insert PHP » Include/require external php code

  • Resolved nirgalo

    (@nirgalo)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    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

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

    Plugin Author WillBontrager

    (@willbontrager)

    Gratuitous post to mark thread resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Include/require external php code’ is closed to new replies.