• Hi all,
    Forgive if this is a stupid/common question, but I’m not having any luck finding good guidance …
    My page is 99.9% WordPress, but there’s one section devoted to digital art which uses an external PHP script, a really nifty photo-directory tool which lets me plunk things down into directories and it makes nice pages automatically. Have a look at https://www.jamesbickers.com, and click on “digital art and photography.”
    Only trouble is, I can’t figure out how to integrate it into WP. I’ve currently hard-coded it to an external, static page, which is far from elegant – and worse still, it loses the menu. I know I can hard-code the menu bar itself, but that is even less elegant.
    Is there any reasonably easy way to get an external PHP script to run within a WP installation, as I’m trying to do here?
    Thanks in advance,
    James

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve done something similar to what you want on my own page. I used Singapore photo gallery which is a php-based gallery and have incorporated it into my WP site pretty well. What I did was put an include to my singapore gallery within the content div in the wp index page and renamed the index page to something else, like gallery.php.
    I also included all the posts afterwards, but you could cut all of that out so you just have the gallery.
    You can check it out at my site: https://aqueerlife.com
    Click on a picture in the menubar to get to the gallery.
    Josh

    you could just take everything from the content div and above, put it in header.php, and everything from the end of the content div and below in footer.php, and include it at the top and bottom. What I always do.

    Thread Starter jbickers

    (@jbickers)

    masquerade, that worked perfectly – thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Easy way to include a certain PHP script’ is closed to new replies.