Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21067

    Hi,

    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)

    Thanks

    Alex

    #110325

    Hi,

    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.

    Thanks,

    NIck

    #110326

    Hi,

    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?

    Thanks

    Alex

    #110327

    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.

    #110328

    Unfortunately it does not work …

    Thanks for trying

    Regards

    alex

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Shuffle default gallery only’ is closed to new replies.