The only option you have is to write your own SQL into the posts_clauses filter, where you get an array of the JOIN, WHERE, ORDER, etc. clauses that you can alter, add to, remove, etc.
One MAJOR MAJOR note on this, is ALWAYS use the global $wpdb‘s prepare function, which will sanitize all your lovely datas. You don’t want to be allowing any type of injection through your search term custom queries. 🙂
Related Posts:
- tax_query will produce nothing
- Multiple, nested tax_query relation
- Can’t make a tax_query across different post types
- How to write a Tax Query that matches all terms in an array?
- using multiple terms in tax_query
- in_category() and tax_query with custom post type
- OR for a single taxonomy in a tax_query
- simple tax_query intersection
- How to set `tax_query` with `query->set()`
- tax_query will produce nothing
- Multiple relationship for multiple tax_query in WP_Query
- Query posts by custom taxonomy ID
- Escaping WP_Query tax_query when term has special character(s)
- Tax_query terms ID’s using variable
- The Operator “NOT IN” Does Not Work In tax_query
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Why is my WP_Query not working when tax_query terms are an array?
- get_terms with posts that have a different taxonomy with term x
- template_include for search.php makes WordPress think its on the home page
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- Hidden woocommerce products still showing up in search results [closed]
- How to create a WP_Query to search the Title or Tag?
- Combine tax_query and meta_query in WP_Query
- Count number of posts which exist in 2 taxonomies?
- How to extend tag and category “Related Posts” query to custom post_type if the first 2 terms have no posts
- Find all product that contain terms with %keywords% in WP_Query
- Get term by custom term meta and taxonomy
- WP_Query tax_query on ACF post_object
- How to add terms to my tax_query based off of the current post
- How to output content based on same custom taxonomy?
- Query all posts in a given taxonomy
- Change default ordering of taxonomy terms – pre_get_terms
- WP_Query, tax_query and term_meta: How to?
- Is it possible to dynamically get queried term AND taxonomy?
- How can i simulate “taxonomy__in” in query?
- Get pages only with a specific taxonomy
- How to add autocomplete to custom taxonomy for CPT
- pre_get_posts: using tax_query only for certain post type
- pre_get_posts Remove tax_query Completely
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Query Multiple Taxominies Across Multiple Post type’s
- Meta Query relation “AND” not working
- Nested tax_query that allows specified categories OR tags, but NOT other categories
- How can I add multiple ‘tax_query’ arrays via a loop?
- Populate tax_query terms parameter with post term
- Fastest way of counting posts of a custom post type in a specific taxonomy term?
- Fetch posts that match term slug first two letters (wp query)
- Is it a good idea to improve meta query performance by adding tax query?
- WP_Query | Tax_Query Relation | Unable to use ‘OR’ as it then allows all products, help me finish my query?
- Searching in title or meta, with a tax query too!
- Why is this query not working? (Standard posts + custom post type)
- Using meta_query and tax_query at the same time
- Tax query AND/OR meta query [duplicate]
- Custom Taxonomy Not Working When added to WordPress Search
- Hiding taxonomies with no children WP_Query & tax_query
- Exclude posts which have any term in a certain taxonomy from the query
- How to display Related Posts based on number of taxonomy terms matched
- tax_query not working in template
- Finding WordPress Posts assigned to multiple categories
- WP_Query parameter conflict
- How to do a particular wp_query taxonomy search
- Tax Query only returns for the first of several terms
- Is it possible to query posts with tax queries after multisite switch_to_blog() function?
- Set both meta_query and tax_query using wp_query->set
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- How to print term name inside wp post loop
- Get posts in taxonomy randomly
- Loop posts based on permalink term
- WP_Query tax_query – Show results if child has parent X
- how to access the $query variable inside taxonomy-xxx.php template file?
- Any quicker alternative for WP_Query “NOT IN”
- Tax Query on product_cat using NOT IN as operator does not exclude that category
- Get Posts Related to Category By category id or slug
- problem with setting tax_query in pre_get_posts
- Display just the Post’s parent Category, not child
- AJAX not working when clicking load more button, when two terms are present in tax_query
- Show posts from two specific category in WP_Query
- I’m having trouble with Related Product “tax_query” ‘terms’ value
- Multiple dynamic Tax Query – pass taxonomy argument from array
- custom post type and a “sticky” position taxonomy
- WP_Query for a taxonomy value OR a custom post type meta field
- wp_query with meta_query and tax_query
- Select multiple categories with is_tax
- list all post who have mutual taxonomy as current taxonomy!
- Cannot get to work tax_query array for terms
- How can I get the last 5 element of this tax query?
- WP Query tax_query not returning posts
- Parse error: syntax error, unexpected ”tax_query” in wordpress
- In Product Category archives how to show Posts having same/similar prod_cat slug structure?
- WordPress Multiple Taxonomy Query
- Using get_posts, I need to use a combination of OR & AND relations
- Query breaking with ‘posts_per_page’ => -1
- Custom query for tag and custom tag from 2 post type
- Multiple terms not working on taxonomy
- List posts of terms but exclude one term
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- Custom Query Arguments
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- Output ACF field dynamicaly within a taxonomy loop [closed]
- Adding a language rule and displaying posts with a custom taxonomy term on its archive page