If In Category

Use this a lot

 if (in_category('news')) { include STYLESHEETPATH.'/template-in-something.php'; exit; } 

For custom post types

if (has_term( 'sold', 'taxonomy', $thepostobject )) { include STYLESHEETPATH.'/template-in-something.php'; exit; } 
Comments