I don’t typically do what you are doing the way you are doing it – but the glaring thing to me is that your setting your tax query with the associative key of 'tax_query1'
, which as far as I know shouldn’t work. It should simply be called 'tax_query'
Try this:
$query1->set('tax_query', $tax_query1 );
Hope that helps.
Related Posts:
- Get terms by taxonomy AND post_type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Taxonomy, Terms, and Template Files
- Get Custom Taxonomy ID within loop
- Custom Post Types not showing on Custom Taxonomy archive page
- custom post type or taxonomy
- Highlight menu item when on a custom post type?
- Changing the priority of a custom taxonomy’s metabox
- How to list all categories and tags in a page?
- How to setup a Custom Taxonomy Term template
- Admin to user notices – best practices?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Many to Many Taxonomies or rewrite rules?
- Custom Taxonomy List links being re-written
- front end radio custom taxonomy with custom post type
- How to display the rest of categories on Portfolio filterable
- Bulk 301 redirect for custom post type
- How to query custom post type by term?
- Associate Taxonomies Across Post Types
- ‘category__and’ for custom taxonomy?
- Custom post query by taxonomy
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How can I show recent posts from same taxonomy as the post currently being viewed?
- How to get the first term for the current taxonomy?
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- Show Post Count of a Category
- Display custom post type category taxonomy
- How to make a custom taxonomy selectable in post publish area?
- Add Tags to custom post type
- Custom page template for category taxonomy
- Only show posts from a certain category?
- WordPress as Wishlist Application
- List Post Title by Last Word Then Second Last
- get_object_taxonomies() returns empty array for custom post type
- Display all posts in main category and 1 subcategory
- Customize Query for post
- Correct classes for WordPress menu items
- How can I see a list of my Custom Post Types of the last term I was in?
- Display post as term id
- How to filter wp_list_categories output with some custom post type meta query?
- Custom taxonomy rewrite give pagination 404
- Removing custom post type slug from URL
- Customize Custom Post Type URL
- Advanced search form with filters for custom taxonomies
- Why cant I add a custom post type to a custom taxonomy?
- Show Custom Taxonomy title in loop
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Post Type Dilema – How do I categorise by country?
- Custom post type’s extra fields – how to handle?
- Display custom taxonomy on my custom post type
- List Categories (wp_terms) and count posts
- Can I query posts by taxonomy conditionally based on post type?
- Which file/template is in charge of taxonomies for custom post types?
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Show current custom taxonomy
- How to get dropdown instance value in WordPress custom Widget
- Include custom post type custom taxonomies in Categories widget
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Check when the post type changes, and display content
- Loop and add Specific Categories and Products Images
- Custom post type specific category box
- Making a form for user to add new custom post with custom taxonomies and custom fields
- custom post archive URL is wrong
- custom post type or taxonomy, which approach is better?
- Custom Post Type with Different Sets of Post Content?
- Add a class to a div if custom post type has specific terms?
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Custom post type paging return home page
- Basic CPT Question About Categories
- custom post type and a “sticky” position taxonomy
- In child theme, add CPT to custom taxonomy registered in parent theme
- Custom taxonomies not displaying in some custom posts
- Custom taxonomy returns 404 even with saving permalinks
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Custom post type shortcode with taxonomy attribute not working and no errors
- Custom taxonomy terms registered not showing when added in child theme
- Redirect Custom Post Type from Child Taxonomies
- Ajax load more inside custom post type taxonomy
- How can I get the last 5 element of this tax query?
- Custom post edit page permalink links to edit page rather than the post
- Create a custom wp_query from a specific custom post type with specific taxonomy
- Show tags of custom post types in WordPress
- Show posts for current taxonomy
- order taxonomy alphabetical
- WordPress get all post with like in terms [duplicate]
- Query Pulling the same post twice
- Cannot retrieve Custom Taxonomies (Disappeared)
- Custom Post type and Taxonomy in post URL error
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Loop multiple taxonomy in custom post
- How to Create Custom Post Type with Multiple Color Options?
- Custom My account page and custom page for editing posts
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Require Custom Taxonomy for Custom Type
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Create a hierarchical list of posts that’s grouped and nested by category
- Show a wordpress custom post condtionally using a category term