WordPress.org

Ready to get started?Download WordPress

Forums

I need a way to display a different theme daily.... (13 posts)

  1. vkaryl
    Member
    Posted 9 years ago #

    "Theme of the Day" sort of system.... I am no coder, anyone heard of something like this?

  2. fuzzy_logic
    Member
    Posted 9 years ago #

    So you want WP to automatically change a theme everyday?

  3. vkaryl
    Member
    Posted 9 years ago #

    Yes. Randomly or in set rotation, doesn't matter to begin with because as with so much else, while I can't write something like that from scratch, if I get a working whatever I can change it....

  4. Root
    Member
    Posted 9 years ago #

    Well I would begin with the randomize plugin. Might need tweaking but shouldnt be difficult. Get it installed and we can have a look.

  5. vkaryl
    Member
    Posted 9 years ago #

    Heh - I didn't know there was one. Guess I'll go hunting....

  6. Root
    Member
    Posted 9 years ago #

    Yup. It randomises everything. Even your dogs breakfast.

  7. vkaryl
    Member
    Posted 9 years ago #

    Now if I had a link to a plugins repository.... [edit: nev'mind, found it....]

  8. Root
    Member
    Posted 9 years ago #

    wp-plugins.net/org ?

  9. vkaryl
    Member
    Posted 9 years ago #

    Yep, there and others.... got some stuff to play with, we'll see what I come up with. If anything.

  10. Root
    Member
    Posted 9 years ago #

    The call is going to need to go in header.php.

  11. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    The Theme Switcher plugin could be adapted to randomly select a theme from the list of installed themes and set a cookie that expires in one day. To select a random theme, try:

    $themes = get_themes();
    $theme = $themes[mt_rand(0, count($themes))];

  12. vkaryl
    Member
    Posted 9 years ago #

    Thanks ryan - I'll try that first. Simpler is always better, I think....

  13. dawg
    Member
    Posted 9 years ago #

    @vkarl I will be interested to see if you get that to work. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.