WordPress.org

Ready to get started?Download WordPress

Forums

Eazyest Gallery
[resolved] While Loop Through Gallery (3 posts)

  1. SGajewski
    Member
    Posted 1 year ago #

    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/

  2. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    thumbnails and other resized images are stored in subdirectory _cache, Just check the directory name and skip this one.

  3. SGajewski
    Member
    Posted 1 year ago #

    Thanks, buddy. I appreciate the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.