Using WP 1.2--
in_category only seems to work when you're displaying more than one post. When you address a single post (i.e.
index.php?p=x) , in_category seems to always return False.
I have two different categories of posts, poems and prose. I want poems to be formatted as, well, poems, and prose to be formatted normally, and I'd like categories to do the work (i.e. inserting special divs) so I don't have to. So, I use Matt's aside trick with in_category and If...Else code, with butter and salt. Except, when I display the poem by itself, via the permalink, it's jumped the If and formatted the text as a prose post. Bug, or feature? And how might I work around it?
(Note that you get this behavior with Matt's asides... just it's more natural.)