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
- Display all posts in a custom post type, grouped by a custom taxonomy
- How to Add Custom Taxonomy To Woocommerce Plugin
- Taxonomy, Terms, and Template Files
- How to add custom content template part for a custom post type on main query using a plugin
- Loading custom page template via plugin
- Templates for Custom Post Types and Custom Taxonomies
- register_taxonomy with multiple object type and update_count_callback
- Posts in Multiple Columns and Rows with one single loop
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Randomly placed sticky custom posts complemented by blog posts
- How to display the rest of categories on Portfolio filterable
- Trying to manage templates on a blog with lots of custom taxonomies
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- ‘category__and’ for custom taxonomy?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Filter by custom taxonomy slug on a custom post type
- Am unable to reset a query properly
- get_attached_media() on author page not working
- Get next and previous 3 posts in a term in single post page
- Template for custom post with custom taxonomy
- Custom post type multiple loop by taxonomy term
- List custom taxonomy specific to one custom post type
- Return the latest post from a custom Taxonomy and Post Type
- Custom taxonomy and custom post type – wrong permalinks and template
- What’s the WP way to load remaining custom posts?
- 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?
- WordPress custom taxonomy template not working
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- get_the_title() is returning results from previous loop
- Template files for Custom Post Type and Taxonomy
- Control content before and after custom post type loop
- Which file/template is in charge of taxonomies for custom post types?
- Show current custom taxonomy
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- 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?
- List all Custom Post Type posts excluding certain Taxnomy term
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Most viewed post of custom post type
- Loop and add Specific Categories and Products Images
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Custom post type page with parameter
- How can I loop at a Specific Taxonomy from a custom post type?
- Custom post type category link redirecting to 404 page
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- Error 404 change permalink term custom term taxonomy
- 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?
- Some posts not displaying by taxonomy 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
- 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
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- Loop to display parent categories in custom taxonomy
- How can I load Template file from wordpress plugin
- Templates for CPT not working
- Which File Populating CPTs in Slug URL
- Single taxonomy for different custom post types
- Not Able to List CPT Based on Taxonomy Term
- Show posts for current taxonomy
- Show Templates in Custom Post Type Editor
- Custom taxonomy page template
- WordPress Custom taxonomy template
- Associate custom categories to different user IDs
- Loop with Custom Post Type and Taxonomies
- Render custom taxonomy query as single template
- Loop multiple taxonomy in custom post
- How to avoid hardcoded text in a custom page 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
- WordPress Custom Post Type and sort by Tags
- Display posts from category in page
- Get term_id for each instance of custom taxonomy
- Sorting custom post types by taxonomy (So close)
- Looping taxonomy in taxonomy?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Only One Post of Custom Post Type Appearing on Template Page
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Custom Post Type urls not working
- Complex Custom Loop with Includes