WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode Exec PHP
[resolved] Including a PHP page (5 posts)

  1. philipt18
    Member
    Posted 1 year ago #

    If I have a PHP page, can I just include that using this plug-in? I'm looking for a way to integrate with WP, while allowing a developer to update the php file without having to deal with WP. Thanks.

    http://wordpress.org/extend/plugins/shortcode-exec-php/

  2. Marcel Bokhorst
    Member
    Plugin Author

    Posted 1 year ago #

    You can try, but be aware that the scope of a shortcode is different from a separate PHP file. In other words you might have to change things.

  3. markostanley
    Member
    Posted 10 months ago #

    philipt18 how did you get on with this? I am including a complex php script previously written and sitting on my web server, but it's not working. Did you try this and find particular things worked / didn't work? I was previously doing the same thing, including the same script on WordPress 2 using Exec-PHP which worked. But no more it seems...

  4. johnh44
    Member
    Posted 10 months ago #

    shortcode-exec worked for me, but I did have to alter my code a bit; supplied some global variables for one thing. Minor adjustments.

  5. lohray
    Member
    Posted 6 months ago #

    I am wondering the same thing. How do I include an existing php file? What path do I use? Should I use an absolute path? What folder should myFile.php be in to run include("myFolder.php");?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic