I put this into my page, still only white where this code begins.
This is the code from the last line to print to the footer:
<!-- LARGE IMAGES AND LINKS -->
<?php
function GetImages($dir, array $extensions, $prefix = "")
{
$images = array();
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS));
while($it->valid())
{
if (($pos = strrpos($it->getSubPathName(), '.')) !== false &&
in_array(substr($it->getSubPathName(), $pos + 1), $extensions))
{
if ($prefix)
$prefix = rtrim($prefix, '/') . '/';
$images[] = $prefix . $it->getSubPathName();
}
$it->next();
}
return $images;
}
$dir = dirname(FILE) . '/wp-content/uploads';
$extensions = array('jpg', 'png', 'gif');
$prefix = '/wp-content/uploads';
try {
$images = GetImages($dir, $extensions, $prefix);
foreach($images as $img)
echo '<img src="' . $img . '" /><br />';
} catch (UnexpectedValueException $e) {
die($e->getMessage());
}
?>
</div><!-- ## catalog-collection ## -->
</div><!-- ## text catalog ## -->
<?php endwhile; ?>
<?php get_footer(''); ?>