WordPress.org

Support

Support » Plugins and Hacks » [Resolved] While Loop Through Gallery

[Resolved] While Loop Through Gallery

  • Hey Marcel,

    I have a quick question: I am using Eazyest Gallery (“EG”) in a custom template to manage the images for specific construction projects. On my main page I would like to create a while loop that will cycle through all the images in a specific folder created by EG. Is there a simple way to do this?

    I have a folder I called “main-page-featured” in EG.

    I was going to do something similar to (projects is my EG directory):

    $handle = opendir(dirname(realpath(__FILE__)).'/projects/');
    
    while($file = readdir($handle)){
    if($file !== '.' && $file !== '..'){
    echo '<img src="projects/main-page-featured/'.$file.'" border="0" />';
    }
    }

    The problem this is that it cycles through all the thumbnails as well.

    Any ideas?

    http://wordpress.org/extend/plugins/eazyest-gallery/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] While Loop Through Gallery’ is closed to new replies.