I was wondering if it is possible to shuffle the default gallery only as the coding of the helper-slideshow.php has changed with Flashlight 2.1.?
(I am still using “shuffle($attachments );” but it obviously shuffles everything)
Have you tried the code in this thread http://www.kriesi.at/support/topic/random-photo#post-34314 ? I see your name there so I guess you must have, but I don’t suppose there is any change since those times.
I have, but all galleries are shuffle as well.
I would like to shuffle the home page gallery (ie default gallery) only. As it is much more pleasing for the user to arrive on a website with a different background each time…
If you have solution?
You can try to use following code instead:
if(is_home() || is_front_page()) shuffle($attachments );
foreach($attachments as $key => $attachment)
If it doesn’t work it’s not possible to shuffle the images only on the home/front page.
The topic ‘Shuffle default gallery only’ is closed to new replies.