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

  1. SGajewski
    Posted 3 years 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?


  2. Marcel Brinkkemper
    Plugin Author

    Posted 3 years ago #

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

  3. SGajewski
    Posted 3 years ago #

    Thanks, buddy. I appreciate the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Eazyest Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.