I think the issue here is that when registering the post type, you’ve set exclude_from_search
to true.
See this note from the WordPress Coedex:
Note: If you want to show the posts’s list that are associated to taxonomy’s terms, you must set exclude_from_search to false (ie : for call site_domaine/?taxonomy_slug=term_slug or site_domaine/taxonomy_slug/term_slug). If you set to true, on the taxonomy page (ex: taxonomy.php) WordPress will not find your posts and/or pagination will make 404 error…
Related Posts:
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Dynamically insert code to custom post type loop
- Create a custom taxonomy template that loops through child categories in term order?
- % encoded URL giving 404 error in WordPress
- Custom taxonomy template for custom fields loop [closed]
- get_permalink() of page the enclosing page not posts
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- wp_query to find posts by year and month
- Custom Post Type Loop within Shortcode
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- get_template_part for each level of taxonomy term
- Filter by custom taxonomy slug on a custom post type
- Normal pages as children of my Custom Post Type
- Only show posts from a certain category?
- Display CPT posts based on specific taxonomy
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- get_object_taxonomies() returns empty array for custom post type
- Am unable to reset a query properly
- get_attached_media() on author page not working
- Adding a custom post type taxonomy template in plugin
- How to add a custom taxonomy to show up in a custom post type menu?
- Get next and previous 3 posts in a term in single post page
- Loop custom taxonomy to get lists of cutom post types?
- Query with no terms uses index.php template instead of archive.php
- Custom loop with multiple taxonomy queries
- Create template for taxonomy results limited by Custom Post Type
- Template for custom post with custom taxonomy
- Custom post type multiple loop by taxonomy term
- Getting template_include to work when allow_url_include is off?
- List custom taxonomy specific to one custom post type
- Show a Category X’s custom post type on Category X archive page?
- Display all taxonomy terms, add class if term applies to current post
- Return the latest post from a custom Taxonomy and Post Type
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- What’s the WP way to load remaining custom posts?
- What is the best practice for displaying my plugin content in themes?
- Display Custom Taxonomy Alphabetically
- Full Custom Post Type List Organised by two Taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- Custom taxonomy returns 404
- Template for all categories of a custom post type?
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Migrating a taxonomy’s tags to the native category
- Plugin fatal error
- Listing all term items alphabetically / sorting loop
- WordPress custom taxonomy template not working
- Display related custom taxonomy posts in sidebar
- How can I get this request to use the Custom Post Type page template instead?
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Archive for a Taxonomy of a Custom Post type
- Three Most Recent Posts, One Per Term
- get_the_title() is returning results from previous loop
- Template files for Custom Post Type and Taxonomy
- Custom post type’s extra fields – how to handle?
- Custom Empty Results page for my Custom Post Type
- Changing CPT permalink
- Excluded Custom Taxonomy Term Posts Displaying in loop
- I have a random letter appearing before my content. Where to start looking for the cause?
- Custom Post Taxonomy Template Not Loading Properly
- Accessing download link from the loop with WP Download Manager Pro
- Some posts not displaying by taxonomy term
- Warning , Use of undefined constant PLUGIN_PATH?
- Combine multiple separate lists into one
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- posts_per_page is not working by term
- 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
- List all posts associated under custom taxonomy
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Insert custom taxonomy into category query
- CPT: multiple loops with different terms
- Display title of all custom posts from same taxonomy term on a custom post template
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- Loop to display parent categories in custom taxonomy
- Add active class to foundation 6 tabs while looping categories
- How can I load Template file from wordpress plugin
- Templates for CPT not working
- Which File Populating CPTs in Slug URL
- How to show terms used only for particular custom post type. Filter creation perpose
- Single taxonomy for different custom post types
- Not Able to List CPT Based on Taxonomy Term
- How should i name the .php file to show custom posts under a taxonomy’s term?
- Show posts for current taxonomy
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Custom post types not displaying per category
- Error in WP Query. If variable is empty it is displaying previous post value
- Looping through custom taxonomy in one template
- WordPress query posts by custom post type not workng
- Custom Post Type tag taxonomy “Page Not Found”
- Custom post type with custom taxonomy permalinks
- Show Templates in Custom Post Type Editor