Per the Codex:
relation (string) – The logical relationship between each inner
taxonomy array when there is more than one. Possible values are ‘AND’,
‘OR’. Do not use with a single inner taxonomy array.
So you are on the right track, but your tax_query is wrong. relation is part of the outer tax_query array and not part of the top level query arguments.
$query_args['tax_query'] = array(
'relation' => 'OR',
array(
'taxonomy' => $post_type . '_filters',
'terms' => $terms,
'field' => 'id',
)
);
Related Posts:
- How to list some posts first in the loop based on post id
- ajax category filter
- Display posts the match taxonomy term linked from wp_list_categoies?
- How to order posts tag by tag?
- Move posts to top of WP_Query if in certain Taxonomy?
- How to get any tag ID
- Multiple Loops Inside a Function
- How do I run through a WordPress loop called from a filter function?
- How to filter, restrict and return posts based on custom user meta information
- Post loop for all taxonomy terms
- Redirect to another page using contact form 7? [closed]
- how to access query string in wordpress?
- Custom taxonomy.php not working
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Loop posts based on permalink term
- Filtering by multiple conditions in the loop
- Why does apply_filters behave different inside and outside a loop?
- WordPress – Form does not filter the results of taxonomies
- Custom query for custom post type not getting correct post ID
- Custom category page with taxonomy filters
- pages shortcode filtering by category
- Get post Number with local loop and template
- WP_Query doesn’t works inside loop
- Only seems to be displaying one child when there are supposed to be multiple
- Problem with custom WP_Query and underlying pagination/posts_per_page
- Calling a function with WP_Query only ever brings the first result
- How to write a query-function as a query-shortcode?
- tax_query not working properly with get_posts
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- Custom query for certain post type OR another post type with a certain category
- Can I force WP_Query to return no results?
- Multiple WP_Query loops with Pagination
- WP_Query and next_posts_link
- WP_Query – filter or directly?
- What is the most efficient way of querying posts based on visits and date for current day?
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Get array of posts from the current archive page loop
- How can I save an array from a random post sequence for later use?
- Custom query incorrectly returning everything [closed]
- Pagination custom query
- In loop: posts have thumbnail AND other variables
- How to order category.php loop by ‘meta_value’?
- Add inline HTML to posts published within last 24hrs
- Querying Multiple Custom Taxonomy Terms
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- Implementing an OR statement to wordpress wp_query
- Get List of all the Authors
- WP_Query loop within WP_Query loop
- Refine search results using WP_Query
- How to pass many ids in post__in?
- How to show subcategories using loop?
- Sub-loop / nested loops Best Practices
- add_filter() depending on search term
- Show Sticky Post at the top but do not show again in the loop?
- Any number in meta key (wp query)
- Having a Function Inside of the Loop
- How do I get the title of a category in a custom loop?
- wp_query ‘s’, search filter with pagination is not working
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- Out Of memory issue on post per page parameter
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- Need to convert string of term ids into comma separated integers for use in an arguments array
- How can I allow sticky posts but cap the query to 1 post?
- How do I get my custom query to work with search results after the first page?
- Error with function in functions.php?
- Exclude recently updated post from custom WP_Query using multiple loops
- get_posts output always same post
- difference between querying database and using the loop
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- posts archive page – closing WP_Query loop correctly [closed]
- AJAX Breaking Offset Argument In WP Query
- Continue or break the while loop
- Does putting queries within loops cause an issue on WordPress?
- Can’t order the query result as given posts id’s array
- Paginate pages with dynamic query
- WP_Query loop doen’t work with my custom taxonomy
- My combination of ‘post_type’ and ‘tax_query’ not working?
- tax_query not working on custom post type
- show most viewed post
- How can I use WP_Query to sort ‘event’ custom post type by date?
- Show one post of each custom taxonomy
- Pagination returns 404 after page 20
- Ordering Posts by parent category, name ascending
- WP_Query a custom field value bringing back 0 results
- Set Transient on CPT
- Multiple wp_query loops showing first 5 posts on all pages instead of older posts[Resolved]
- meta_query dates from an array
- Creating array to compare custom field values
- Remove 5 latest posts from the loop
- Exclude post formats in custom loop
- Adding css tweak based on page template
- Show linked products using wp query and woocommerce
- Standard Loop – wp_query
- Custom Wp_query loop takes very long
- Splitting query results, on the frontend, into separate sections based on meta value without multiple loops?