Displaying random image

I would like to display a random, full size image on my home page. Below is the code that I am using but it does not select a random image. Instead it displays the oldest image in the album. I have copied it from the effervescence template but much have missed something vital

<?php makeImageCurrent(getRandomImages(true));
printDefaultSizedImage(getImageTitle()); ?>

The site can be viewed at hedshot.co.uk. Can someone please help me out with the correct code. Thanks

Comments

  • That code will change the image only once a day. Is that what you are seeing? To change each viewing, use `getRandomImages()`
Sign In or Register to comment.