Use include to to include different PHP file depending on day of the week
-
Hey all. I’m trying to make a template that will display a different sidebar (one of 7) depending on the day of the week by using date(‘l’) – somehow though I’m getting my syntax completely wrong – just trying to use:
<?php include (TEMPLATEPATH . (etc etc etc)
so that WordPress will include (for example) Saturday.php Sunday.php Monday.php etc.
Any guidance here would be appreciated.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Use include to to include different PHP file depending on day of the week’ is closed to new replies.