Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Need an Image Rotator that uses all images in a folder…

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36596
    charlie
    Participant

    I’m looking for an image rotator (i.e. Nivo slider or jQuery Cycle) that will pull images from a folder rather then having to specify each image link in html. An option for “random” would be nice too.

    If anyone knows of one let me know.

    Thank you,
    Charlie

    #96533
    fectio1
    Member

    Not exactly what your looking for, but I am sure it can be customized to your liking. Maybe using something like wp_get_attachment_image_src to replace ‘example.jpg’ . This is just merely a guess on my part.

    
    $images = array(
    'example.jpg',
    'example.jpg',
    );
    $image = $images[array_rand($images)];
    $output = "";
    echo $output;
    ?>
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.