Sounds promising! Thank you! :-)
I get the images Wordbooker is retrieving from a function:
function NggRandom($galleryId = 0) {
$randompictures = nggdb::get_random_images(5, $galleryId);
$randompictures_output = "";
foreach ($randompictures as $randompictures_value) {
$randompictures_output = $randompictures_output.'<img src="'.$randompictures_value->thumbURL.'" height="80" alt="'.$randompictures_value->alttext.'" title="'.$randompictures_value->alttext.'"/>';
}
return $randompictures_output;
}
I "echo" the function with a gallery id before the_content() in the template I use for the dive sites listed on the website.