WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Sight] Randomizing order of slideshow (1 post)

  1. svenjick
    Member
    Posted 11 months ago #

    Goal: How to make the order of pictures in Sight's slideshow random

    I came across this "need" on a few forums (where I could not be asked to create yet another account in order to reply) so I thought I'd quickly document this here.

    Sight uses the id's of your posts, to determine in which reverse order to display the header pictures in the slideshow. So there's a rapid fix you can apply in slideshow.php:

    On line 8 of slideshow.php, you have
    $slides = get_posts($args);

    All you need, is to add a little
    shuffle($slides);

    and you're done, the order is now random.

    Hope this helps - and if this is a duplicate, just delete my post.

    - svenjick

Reply

You must log in to post.

About this Topic