I am using WordPress. I have an image folder like mytheme/images/myimages.
mytheme/images/myimages
I want to retrieve all the images name from the folder myimages<
myimages
you can do it simply with PHP opendir function.
opendir
example:
$handle = opendir(dirname(realpath(__FILE__)).'/pictures/'); while($file = readdir($handle)){ if($file !== '.' && $file !== '..'){ echo ''; } }