Looking to insert a bit of code into my “single” template page to show custom titled headers for every category (i.e. “category-13”), so how would I make that work in an if statement?
The idea I had that doesn’t work is:
<?php if ( in_category('category_id') ): ?> include(TEMPLATEPATH . '/single-'category_id'.php'); <?php endif; ?>
Any help would be vastly appreciated.
- The topic ‘Category header for individual posts’ is closed to new replies.