I am wanting to find out if the following is possible with PHP inside WordPress.
Basically if I have a directory in my site called \"promos\" that consists of 1 to
This code will provides the images from the directory called "imagfolder"
if($handle = opendir(dirname(realpath(__FILE__)).'/imagefolder/')){ while($file = readdir($handle)){ if($file !== '.' && $file !== '..') { echo ''; echo ''; echo ''; } } closedir($handle); }