Support » Themes and Templates » Custom post type, global categories — what’s the template name?

  • The documentation for template hierarchy for custom post types (CPT) includes:

    1. Either for the CPT itself (archive-cptname.php)
    2. Or for custom taxonomies (taxonomy-taxonomyname.php)
    3. Or for overall categories (category-catname.php)

    But it doesn’t include the obvious “CPT, with global categories”. What would that be? I tried something like archive-cptname-categoryname.php, but this doesn’t work. Any pointers? It would be great to have this in the docs too.

  • The topic ‘Custom post type, global categories — what’s the template name?’ is closed to new replies.