many thanks, but didn’t work for me
outputs nothing?
I found that above works in the category sections, but not index.
So where cat=2 class=”post-2″
But on index page I can only get “post-0”
Is there a way to achieve different category numbers on the index page?
Hi
I’ve clean upgraded to 1.2 (seems a lot better)
But I still have the same problem.
Can anyone tell me why..
<div class="post-<?php the_category_ID(); ?>">
Only returns zero (“post-0”, etc) when my category ID’s are 1-4, and seem to work fine?
Thanks
using version 1.0.2 by the way!
What I want to do is assign a css class to different category, so using:
<div class="cat_<?php the_category_ID(); ?>">
Is there another way to do this??