For custom post types with custom taxonomy you can make a template for that taxonomy. Your custom taxonomy template would be named taxonomy-{taxonomy}.php
. For example, if your taxonomy was called “cooking-categories” you would name your file taxonomy-cooking-categories.php
.