Choose custom post type template by category
Using single.php with conditional template part inclusion for displaying a specific layout for your custom post type is not the right way to do things. WordPress has something called the Template Hierarchy. The right way would be to create a single-name-of-your-cpt.php to display single portofolio items. The same applies to custom post type archives. The … Read more