<?phpfunction randomImage ( $array ) { $total = count($array); $call = rand(0,$total-1); return $array[$call];}$my_images = array ( \"com.jpg\", \"image.jpg\", \"etc.jpg\");$img = randomImage($my_images);?><?php echo '<img src=\"http://imgurl.com/'.$img.'\" />'; ?>
At the moment its setup to output images using a custom field in wordpress but i can not find somthing to get it to pick random photo's on each visit.
Any help would be great.
Thanks
B
viewtopic.php?f=6&t=3986