I want to hack my Wordpress MU setup so that it rotates through 31 different default themes...one for every day of the month. I read elsewhere that you can change the default theme by finding this line of code in the upgrade-schema.php file:
Can Someone Help Me Write This Loop?
5
I want to hack my Wordpress MU setup so that it rotates through 31 different default themes...one for every day of the month.
I read elsewhere that you can change the default theme by finding this line of code in the upgrade-schema.php file:
...and then just changing it from "default" to the name of whatever theme you want to be the new default theme.
I'd like to get my hands on a php loop that will basically do the following:
if(day-of-the-month = 1, return "Blue Theme"}
else if {day-of-the-mont = 2, return "Red Theme"}
else if {day-of-the-month = 3, return "Green Theme"}
etc...
Can someone get me started on this? I know it's crazy simple, but the small amount of tinkering with php that I do has gotten me nowhere so far.
I read elsewhere that you can change the default theme by finding this line of code in the upgrade-schema.php file:
Code:
add_option('template', 'default');
add_option('stylesheet', 'default'); I'd like to get my hands on a php loop that will basically do the following:
if(day-of-the-month = 1, return "Blue Theme"}
else if {day-of-the-mont = 2, return "Red Theme"}
else if {day-of-the-month = 3, return "Green Theme"}
etc...
Can someone get me started on this? I know it's crazy simple, but the small amount of tinkering with php that I do has gotten me nowhere so far.
- Manfred Ekblad
- [ 1 ] Thanks
- [1] reply
- Christopher Airey
- Manfred Ekblad
- [1] reply
- Christopher Airey
Next Topics on Trending Feed
-
5