Hyphens instead of Underscores in Post-type Archive Template Filenames when Post-type handle contains underscore
I was mistaken. The underscores are required by the template-files if they are part of the custom-post-type’s handle. Make sure to flush the rewrite cache / visit the permalinks page when working with cpt templates The archive.php template the missing cpt-template was falling back to looked similar Following wp-includes/template-loader.php >> get_post_type_archive_template >> get_archive_template doesn’t look … Read more