Title: Image path with custom PHP script
Last modified: August 20, 2016

---

# Image path with custom PHP script

 *  [witchdoc](https://wordpress.org/support/users/witchdoc/)
 * (@witchdoc)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/image-path-with-custom-php-script/)
 * Had a simple php script written for me by a developer to randomly change out 
   series of given images upon reload of the page. Worked great on both index and
   template pages of previous site, but now is having issues with new version of
   WP. Script seems to work in randomly grabbing images 1-3, but shows broken link
   on live page?
 * **Link to working beta site** _(bottom left image of featured belt)_:
    [http://voodoobean.com/wpbeta/](http://voodoobean.com/wpbeta/)
 * **Link to broken beta site:**
    [http://voodoobean.com/wpalpha/parish/](http://voodoobean.com/wpalpha/parish/)
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * **Error:**
    GET [http://voodoobean.com/wpalpha/parish/registration/images/pageimage1.png](http://voodoobean.com/wpalpha/parish/registration/images/pageimage1.png)
   404 (Not Found)
 * Thanks much for any and all help!
    Randy

Viewing 1 replies (of 1 total)

 *  Thread Starter [witchdoc](https://wordpress.org/support/users/witchdoc/)
 * (@witchdoc)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/image-path-with-custom-php-script/#post-2209844)
 * Newbie at Pastebin… sorry if I’m utilizing it wrong!
 * Here’s the PHP code.
    [http://pastebin.com/kvJBHjwK](http://pastebin.com/kvJBHjwK)

Viewing 1 replies (of 1 total)

The topic ‘Image path with custom PHP script’ is closed to new replies.

## Tags

 * [custom php](https://wordpress.org/support/topic-tag/custom-php/)
 * [image path](https://wordpress.org/support/topic-tag/image-path/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [witchdoc](https://wordpress.org/support/users/witchdoc/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/image-path-with-custom-php-script/#post-2209844)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
