Support » Plugin: Easy Image Gallery » Random gallery or random image

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Munro


    Not out of the box but it would be possible to build yourself. To display a random gallery you’ll need to modify the easy_image_gallery() function a bit. Find all posts with galleries, store their ids in array and use shuffle() or rand() to mix it up. To display a single image you’ll also need to modify the function to pass in an image ID or similar.

    Have a look inside the function I mentioned to see how it’s built

Viewing 1 replies (of 1 total)
  • The topic ‘Random gallery or random image’ is closed to new replies.