Mixed post styles in a date archive?
-
I have two post styles, depending on the category. I have no problem with displaying them properly in the category template inside the loop, I’m using a simple if..else to use the appropriate html:
<?php if ( is_category('foo')) { ?>
<?php } ?>
Category Foo's html
<?php } else { ?>
Other category's html
The problem is, I want to achieve similar results in the archive.php, whereby the category listing styles will intermingle. Archive.php seems only to allow is_category()`, which is useless for this purpose. Any ideas how I might make this work?
TIA
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Mixed post styles in a date archive?’ is closed to new replies.