Title: Easy way to include a certain PHP script
Last modified: August 18, 2016

---

# Easy way to include a certain PHP script

 *  [jbickers](https://wordpress.org/support/users/jbickers/)
 * (@jbickers)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/easy-way-to-include-a-certain-php-script/)
 * 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 [http://www.jamesbickers.com](http://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)

 *  1539
 * [21 years, 9 months ago](https://wordpress.org/support/topic/easy-way-to-include-a-certain-php-script/#post-74931)
 * [EzStatic has what you’re looking for.](http://wordpress.org/support/10/9229)
 *  [rsbenedict](https://wordpress.org/support/users/rsbenedict/)
 * (@rsbenedict)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/easy-way-to-include-a-certain-php-script/#post-74945)
 * 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: [http://aqueerlife.com](http://aqueerlife.com) Click on a picture in the
   menubar to get to the gallery. Josh
 *  [masquerade](https://wordpress.org/support/users/masquerade/)
 * (@masquerade)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/easy-way-to-include-a-certain-php-script/#post-74946)
 * 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](https://wordpress.org/support/users/jbickers/)
 * (@jbickers)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/easy-way-to-include-a-certain-php-script/#post-74998)
 * 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.

 * 4 replies
 * 4 participants
 * Last reply from: [jbickers](https://wordpress.org/support/users/jbickers/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/easy-way-to-include-a-certain-php-script/#post-74998)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
