I solved it.
SOLUTION:
<?php
if ( has_term( 'downloads', 'listen', $post->ID ) ) {
get_template_part( 'templates/content-downloads-vergriffener-baende' );
}
elseif ( has_term( 'untersuchungen', 'listen', $post->ID ) ) {
get_template_part( 'templates/content-untersuchungen' );
}
elseif ( has_term( 'studien-materialien', 'listen', $post->ID ) ) {
get_template_part( 'templates/content-studien-materialien' );
}
elseif ( has_term( 'sonderbaende-kataloge', 'listen', $post->ID ) ) {
get_template_part( 'templates/content-sonderbaende-kataloge' );
}
?>
This post: http://wpquestions.com/question/show/id/2038 has been greatly helpful in the process.
Related Posts:
- Taxonomy, Terms, and Template Files
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Templates for Custom Post Types and Custom Taxonomies
- Get page by template?
- Custom taxonomy query for a custom post type
- Need some templating advice for templating with custom post types and taxonomies
- Custom Post Type with Nested Taxonomy and Template Files
- Custom Post Type Archive Template
- custom taxonomy – Template not working
- 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 do I provide a “show all posts” link in a paginated term archive?
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Query with no terms uses index.php template instead of archive.php
- Create template for taxonomy results limited by Custom Post Type
- Template for custom post with custom taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- WordPress Doesn’t Generate Taxonomy Archive
- Custom taxonomy returns 404
- Template for all categories of a custom post type?
- Migrating a taxonomy’s tags to the native category
- WordPress custom taxonomy template not working
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- Template files for Custom Post Type and Taxonomy
- 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
- Which file/template is in charge of taxonomies for custom post types?
- How to get_term_meta on single custom post?
- 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?
- Create a custom taxonomy template that loops through child categories in term order?
- Post template with breadcrumb needs to show page navigated from
- Custom Post Taxonomy Template Not Loading Properly
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- Custom taxonomy template for custom fields loop [closed]
- Templates for CPT not working
- Single taxonomy for different custom post types
- 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
- Custom Post Type tag taxonomy “Page Not Found”
- template structure for CPT not clear
- WordPress Custom taxonomy template
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- 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
- Can I assign a template to a custom post type?
- How to Add Custom Taxonomy To Woocommerce Plugin
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Categories under custom post types doesn’t show properly
- Custom templates for posts like for pages: page-{id} vs single-{id}
- Posts in Multiple Columns and Rows with one single loop
- Hide child term posts on parent term pages
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Taxonomy-{taxnonomy}.php is not working
- Auto Draft Specific Categories Posts after a certain number of Days
- Custom Taxonomy 404
- How to add custom fields to admin UI and REST API response?
- How to filter the taxonomy terms based on another taxonomy term
- How to sync tags between posts that are linked through Posts 2 Posts?
- Combining custom post type and post category
- how can i get posts from custom post type particular taxonomy category
- Conditionally custom post type url rewrite
- Root slug of taxonomy returning 404
- Setting up taxonomy to relate various custom post types – advice on structuring?
- Get terms that contain posts that in turn belong to other terms?
- Querying two taxonomies with tax_query not woking
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Add filter to Admin list for all custom post types by their custom taxonomies
- Single.php for Custom Post Type > Taxonomy > Term
- Custom post types templates
- prevent sub categories to show up
- Custom Post Type Archive Page showing as 404
- Custom taxonomy terms hierarchical navigation
- Is it possible to add the Gutenberg block editor to a custom taxonomy?
- What is the best way to structure posts for the same event happening in different years?
- Dynamically Adding Posts of Post Type to A List
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- Adding a Section for Visitors
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Show parent category and subcategory once in while loop
- I cannot display custom posts in custom taxonomy
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- One-Time Script TimeOut for Large Data
- How to create default taxonomy term for a custom post type? [duplicate]
- Extensive search filtering and results->PDF in the front-end
- How to retrieve the permalink for a specific (custom) term?
- Values inside a custom field to determine which category posts to display
- title tag for custom post type remove taxonomy name from title tag
- Create a page selector using taxonomies
- Advanced search form with filters for custom taxonomies and custom fields
- Code to show related posts (custom post type and custom taxonomy/category) is messing with other code
- register_term_meta not working