Originally Posted by witty
So how can I change the 'href' to be a variable that would use the most recent image and use that for my "Latest Image" link? That way, on the initial page load, visitors would get a random image, but when they clicked on "Latest Image" visitors could start from the beginning of the blog. Thanks!
There's a line that gets the total image count and stores it in $pixelpost_photonumb. You should be able to use that to create a dynamic link.
My guess is that you put <SITE_PHOTONUMBER> in your template where the latest photo number should go in your url string. Try that.
<SITE_PHOTONUMBER> gets replaced by the number of photos in the database ($pixelpost_photonumb). But I don't know what happens if a photo has been deleted as I don't know if it uses a unique id or a number to retrieve images. That's the current limit of my knowledge.