Grow your CSS skills. Land your dream job.

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

  • # February 10, 2012 at 10:27 am

    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

    # February 10, 2012 at 11:58 am

    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.

    < ?php
    $images = array(
    'example.jpg',
    'example.jpg',
    );
    $image = $images[array_rand($images)];
    $output = "";
    echo $output;
    ?>
    < ?php } ?>
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".