How to force a Custom Post Type template by filename

you likely need to do a flush re-write. go to settings/permalinks in the dashboard and click save. You’ll be good to go. In the future you can add this directly to your CPT plugin. I would suggest getting a bit more creative with your naming though so you don’t have conflicts later.

In 2016 theme, how can I force all single attachment posts to use content-attachment.php rather than image.php?

There’s a couple things you could do. If we follow the Template Hierarchy you could rename your content-attachment.php file to attachment.php and remove image.php. This will ensure that the image view will fallback to attachment.php. If you want to use content-attachment.php then you could use the template_include hook to tell WordPress to load in which … Read more

Post archive is not using the assigned template

Question: why doesn’t it use news.php? This is due to a design decision. If you look at the diagram for the Template Hierarchy, you will notice that the Blog Home page type (black box) has a line connecting directly to the home.html primary template (blue box) with no options in between. If you go to … Read more