WordPress.org

Ready to get started?Download WordPress

Forums

Daily Timed Image Rotation (4 posts)

  1. leichte
    Member
    Posted 7 years ago #

    I am looking for a way to have images appear on the home page at certain times every day. Actually, there would be three groups: Weekday images, Saturday images and Sunday images. This is for a radio-oriented site.

    For example, Show "A" should appear from 9am to 10am every M-F. Show "B" should appear during the same time but only on Saturday. And Show "C" should appear during the same time but only on Sunday.

    I would also like the images to link to a post about the show.

    Thanks for any guidance you can give.

  2. Dgold
    Member
    Posted 7 years ago #

    I have been searching for this ability for about a year (same reason, live radio webcast once a week). I haven't found a solution yet, although I've noted other sites that have it. Pretty sure this site has it (not on WP)
    http://www.endlessboundaries.com/

    please post if anyone knows a solution!

  3. erikcurtis
    Member
    Posted 7 years ago #

    What you need is the switch function in PHP.

    Take a look at http://uk2.php.net/switch

  4. erikcurtis
    Member
    Posted 7 years ago #

    Here is a random image loader. Perhaps you can use the code from the previous post to get the images according to time of day. Also FYI when you attempt to test this, day of the week is obtained from the host of the blog not the browser.

    http://faq.wordpress.net/view.php?p=38

Topic Closed

This topic has been closed to new replies.

About this Topic