Lorelle’s two month party is on, and this month it is about WordPress. I have used a nifty technique to use WordPress category slugs to use different styles for posts in different categories. It not only keeps the HTML code clean, but also helps in making it scalable without performance loss. Feel free to modify or add to it, after all its all WordPress goodness.

September 7th, 2007 at 8:42 am
I wanted to style posts based on category but even I felt that using if-else blocks would have a hit on the performance. But this technique is simple beautiful! Thanks for sharing it.