You can use pre_get_posts
filter hook to check if you are on the taxonomy page and if so just add your custom post type to the query something like this:
function add_my_type( $query ) {
if ( $query->is_tax('YOUR_TAXONOMY') ) {
$query->set( 'post_type', array('post','YOUR_CUSTOM_POST') );
}
}
add_filter( 'pre_get_posts', 'add_my_type' );
Related Posts:
- “tax_query” parameter not working with WP_Query
- How do I exclude a custom taxonomy from the post loop
- Can’t get a custom template taxonomy page to display
- Custom Taxonomy and Tax_Query
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- display posts with same taxonomy term
- Including all terms in wordpress tax_query
- Taxonomy Templates… by hierarchical level?
- How to display a listing template of a certain taxonomy?
- How to get first post in a category of a custom taxonomy
- Display one post from each term in a custom taxonomy [closed]
- How to use wp_terms_checklist() on front end
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Custom Taxonomy Template not respecting ‘include_children’ => ‘false’
- How can I set up a category “overview” page?
- search query within custom taxonomy term, post title and meta field
- Which template name to use for taxonomies but not their terms?
- wp query with multiple taxonomy?
- wp_query orderby title and meta key value (WP3.1)
- Page queried instead of a custom taxonomy
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- The next_posts_link() show me a aditional page in blank
- Help with a query not working with custom taxonomy
- Adding session variable and/or cookie based on user-selected input
- Make Custom Taxonomy Category Use Parent Template
- Custom taxonomy template not working
- Excluding a custom taxonomy term breaks wp_get_post_terms
- Using a different template per Custom Taxonomies for single term archive pages
- Advanced Tax Query
- Improving WP_Query performance for multiple taxonomies
- Woocommerce custom taxonomies page
- WP Query with custom taxonomy
- how to search in custom fields & custom taxonomy for custom search
- Generic taxonomy-term template page
- 404 for a custom taxonomy?
- WP_Query on custom taxonomy works fine but fails if run through wp_ajax_
- Advanced Query Logic With Multiple Taxonomies
- How do I Use Multiple Loops with WP_Query?
- Why is my taxonomy template not shown?
- cannot get multiple loops using tax_query
- Meta description – template code to get category description
- Create and set templates for custom taxonomies
- Selecting all posts from the children of a particular parent taxonomy
- Pagination on custom taxonomy
- How to have two different versions of a tag/category/taxonomy archive page?
- How do I create a custom archive page depending on the custom taxonomy type?
- Different single page templates for taxonomies
- Hiding taxonomies with no children WP_Query & tax_query
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- querying posts by custom taxonomy terms right from a querystring based URL
- Taxonomy Parent Name
- Query custom taxonomy by term id?
- Avoid taxonomy-%term%.php if more than one taxonomy
- Returning One custom taxonomy term name
- Make child taxonomy categories use a set template
- When filtering query on custom taxonomy; main menu dissapears
- Exclude taxonomy term from all loops, but having it on widget
- How can I make front page to display custom taxonomy page?
- Why get_page_template() doesn’t show taxonomy template file name?
- wp_query not resetting, last post hanging
- Using WP_Query and Query_post for the loop?
- Problem with wordpress pagination
- How to do a particular wp_query taxonomy search
- How to add custom content to custom taxonomy
- Wp_query…a type of term a different div
- check if a taxnomy queried in $wp_query?
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- WP_Query tax_query – Show results if child has parent X
- how to access the $query variable inside taxonomy-xxx.php template file?
- Query custom taxonomy for category including children
- Proper way to create taxonomy queries
- how to use tax_query to apply both terms or one if one is empty
- Get current page term title to use in WP_Query
- passing moree than one value of slugs in taxonomy using variable
- Template file renders on local install, not on web
- Taxonomy archive uses incorrect template when query strings are used
- How to use custom slug and custom templates for custom taxonomy?
- How to get a terms and posts associated with another term?
- Custom taxonomy archive template not recognised
- Post not showing in my custom advanced search
- How do you move custom fields to custom taxonomies using WP Queries
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Order posts with custom taxonomy array
- Getting grandchildren of a post with a specified custom taxonomy?
- Taxonomy Parameters in WP Query to get posts from two different taxonomies
- Custom Taxonomy + JQuery Tabs
- WordPress doesn’t respect the template hierarchy?
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How to query posts that are not related to any term of a taxonomy?
- Using wp_query is it possible to orderby taxonomy?
- How to limit posts to 1 from each term with tax_query?
- Can you orderby slug in a taxonomy archive page using WP_Query?
- is_tax not working for custom taxonomy