I'm currently using archive.php
as a generic listing for categories, tags, authors, etc. However, my custom post types have a very customized archive page that's completely different from archive.php
.
I'm wondering if there's a way to create one archive file that acts as a generic template for only my custom post types. If it was included in the Template Hierarchy, it would likely be called archive-post-type.php
or post-type.php
.
I know I can use includes or get_template_part
, but it's really just the same archive file across multiple post types, so I'd rather just create one file for all of them. Ideally, this CPT archive template could still be overridden by archive-$posttype.php
.
If I utilized archive.php
instead for the custom post types, I'd have the same problem in reverse, since category.php
, tag.php
, date.php
, etc. would all be the same template, yet still different from archive.php
.