• 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

Viewing 1 replies (of 1 total)
  • Thread Starter muhkayoh

    (@muhkayoh)

    Just bumping this to see if anybody bites. I did search on this a bit yesterday, but – surprisingly – came up empty. So if you’re holding back because this is one of those already answered questions, please point the answer out to me ’cause I didn’t find it.

    If nobody has any better ideas than the one I suggested in the opener, I’ll probably start toying with that approach in a couple of days. Just trying to avoid reinventing the wheel if possible.

    Thanks again,

    Matt

Viewing 1 replies (of 1 total)
  • The topic ‘Best approach for year-month archive templates?’ is closed to new replies.