Best approach for year-month archive templates?
-
Hello,
I’m working on a wordpress site that’ll basically be a monthly magazine. I’ve gotten pretty decent at customizing template files for categories and such, but I’m now looking for the best way to have year and month specific archive templates. The idea would be to essentially make the archive page for, say August 2007, look like the “magazine cover” for that month.
If I’m understanding the docs correctly and haven’t missed anything, it looks like there isn’t a date-based equivalent for category-6.php. Also, it looks like the conditional tags is_year and is_month are just boolean and don’t take parameters. However, it looks like I could use
<?php $my_month = single_month_title('', false);?>
to pull year-month specific stylesheets, which would be a workable solution.
Is that the best way to do this, or is there something better/easier that I missed?
Thanks,
Matt
- The topic ‘Best approach for year-month archive templates?’ is closed to new replies.