Been googling for an hour now can’t find the answer to what feels like a simple question.
I have a very basic slideshow. I am using the shortcode to load it into the template page.
[nggallery id=1]
I have also customized the view file gallery.php. Pretty much I just pulled out all the extra stuff and just have the foreach loop.
I have tried using the php shuffle on the $images array but that doesn’t fix the problem.
shuffle($images);
foreach ( $images as $image ) :
Any other ideas?
There’s a function defined in
nggfunctions.php
that you can use directly in the template page:Or you can use this shortcode, defined in the
shortcodes.php
file: