My adventures in trying to create different templates for daily and monthly archives continue… Today I am having difficulty getting is_day and is_month to work within the loop without throwing up parse errors. Are they even supposed to work within the loop? Should I be putting the loop inside the conditional statements? Should I give up and try again when I’m less rubbish at PHP?
Once more I have overestimated my abilities and cannot, in fact, get the sample code to work either. I get a ‘Parse error: unexpected <‘ the line after the conditionals end.
To my eye it looks slightly odd that there’s no closing ?> to finish off the conditional statements, but maybe that’s how it’s supposed to be? In any case, when I add one I get ‘unexpected $end’ on the last line of the template.
That’ll teach me for trying to show off. I just wish month.php had existed after all, it would have saved me a lot of frustration.