Switch the taxonomy.php just like you would the single.php to support specific post custom templates. This is untested code, so it may not work – but, first get the post type
$post_type = get_query_var('post_type');
So if $post_type contains post_type=”car” then include archive-car.php like this:
if ( $post_type="car" ) get_template_part('archive-car'); elseif ( $post_type="boat" ) get_template_part('archive-boat'); elseif ( $post_type="bike" ) get_template_part('archive-bike'); else get_template_part('regular-taxonomy');
An better alternative would be if you could establish a template redirect like in this answer, but I don’t know if that’s even possible. If possible, you’d redirect the taxonomy template based on the value of $post_type.
Related Posts:
- Create template for taxonomy results limited by Custom Post Type
- Archive for a Taxonomy of a Custom Post type
- Custom Post Type tag taxonomy “Page Not Found”
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Filtering a custom post type by custom taxonomy in archive template
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- get term archive url / link
- Taxonomy, Terms, and Template Files
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Pagination throws 404 error on custom taxonomy archive pages
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Templates for Custom Post Types and Custom Taxonomies
- Get page by template?
- Archive page with multiple taxonomies rewrite
- Custom taxonomy query for a custom post type
- Create permalink structure for one taxonomy archive per custom post type
- Page is defaulting to archive page and not designated template
- Custom Post Type Archive URL takes over page URL
- Custom Post Type with Nested Taxonomy and Template Files
- Custom Post Type Archive Template
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- Custom taxonomy archive page not working
- where can I see my custom post type archive template?
- custom taxonomy – Template not working
- How to show multiple post types on taxonomy archive?
- Disable single pages and archives and keep preview
- Include different loop templates in search query
- Create separate template for shared custom taxonomy with shared terms
- Trying to manage templates on a blog with lots of custom taxonomies
- How to create archive page for taxonomy terms within custom post type
- Get post type from taxonomy or category page
- custom taxonomy archive by year
- Display custom post type taxonomies as an archive page
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to show the archive / post type description on Single templates
- Archive page for taxonomy terms
- Custom template page with custom archives listing by user
- Custom Post Type Archive Page Filtering
- Root slug of taxonomy returning 404
- Query with no terms uses index.php template instead of archive.php
- Template for custom post with custom taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- WordPress Doesn’t Generate Taxonomy Archive
- Custom taxonomy returns 404
- Template for all categories of a custom post type?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- WordPress custom taxonomy template not working
- Template files for Custom Post Type and Taxonomy
- What’s the name of the custom post type yearly archive template?
- how to remove pages loading with the archive templates
- Custom Post type & Taxonomy 404
- Main query not querying any posts in custom taxonomy template
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- How can I use archive-{post_type}.php theme template?
- Taxonomy archive 404ing (not term archive)
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Which file/template is in charge of taxonomies for custom post types?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Use the custom post type archive for taxonomies?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Custom Post Type setup
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Get template part with CPT and Custom Taxonomy conditionals
- How to create a template to show child terms of a MAIN taxonomy
- How to change single custom post template by custom taxonomy?
- Archive page for custom post type and custom taxonomy
- Archive Template being used instead of Category Template for Custom Post Type
- Create a custom taxonomy template that loops through child categories in term order?
- Advanced archive url structure (category, tag and date)
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can I tell if I’m on a custom post type archive page?
- Post template with breadcrumb needs to show page navigated from
- Custom Post Type Archive Page showing as 404
- Custom Post Taxonomy Template Not Loading Properly
- How to show custom post count in archive page
- Order archive custom posts by taxonomy term [duplicate]
- Custom category taxonomy – archive page not showing up
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- Custom taxonomy template for custom fields loop [closed]
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Templates for CPT not working
- Single taxonomy for different custom post types
- Custom taxonomy archive slug overwrites static page
- How should i name the .php file to show custom posts under a taxonomy’s term?
- I want to create an archive and single page for a custom taxonomy for a custom post type
- template structure for CPT not clear
- WordPress Custom taxonomy template
- archive-{custom_post_type}.php not getting recognized wordpress
- Archive.php is not displaying tags
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- Only One Post of Custom Post Type Appearing on Template Page
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Show custom category archive as front page and remove taxonomy slug from urls