Category-based single post templates
Is it possible to have an entire template be different based on what category a post is? Maybe a php line saying if it’s category 52, use this css code, or use this line of html, or something along those lines. My problem is that in one category, I want images to have a border, and in other categories, I do not.
I was able to do this with different category page templates, but then I could not find a way for the single post view. Thanks.
- The topic ‘Category-based single post templates’ is closed to new replies.