You should use manual sql queries to fetch the records as per your customized requirement and filters rather than the query function. Otherwise install a plugin that creates advanced search form with filters.
I am also sharing a reference link below which might be useful for you:
If none of it helps, do mention the output you are getting with your code.
Related Posts:
- How to filter WordPress search, excluding post in some custom taxonomies?
- Search by type posts and taxonomy
- Filter with two id of the same value CPT UI(taxanomies)
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Exclude Specific Term from Search
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- WordPress Search – display taxonomy terms in results
- How to remove “Taxonomy name:” from wp_title
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- Sort posts by number of matched terms
- How can I display parent and child taxonomies in separate drop downs?
- Help With issue on pre_get_posts filter in taxonomy
- Taxonomies not appearing in columns on dashboard
- Filtering more than one term in a taxonomy in WP
- How to display term description in empty terms archive?
- Save Filter for Taxonomies
- How to add custom taxonomy to search
- Taxonomy.php issue with search and filters
- Extending wordpress search to include excerpts and taxonomies?
- how to search in custom fields & custom taxonomy for custom search
- Current category link filter
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Creating a custom search form
- How to implement custom search with input fields?
- How do I keep the page I’m on within the URL when running a search on a taxonomy?
- Add multiple taxonomy filters to edit.php that support search
- WordPress sort search results by custom order
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- Simple Filter between multiple taxonomys
- Get parent and children taxonomy in different dropbox
- Custom Taxonomy Not Working When added to WordPress Search
- Search Tool only refreshes Page without showing results
- WordPress thinks my custom taxonomy pages are search pages #seo
- Removing “s” from search with custom parameters
- Passing form inputs into multi-taxonomy query
- Custom URLs in Custom Search Results
- Search Query for Multiple Terms In Same Taxonomy
- Remove custom taxonomy column from my custom post type columns
- Use an HTML Element To Filter Taxonomies In WP Search
- Query posts using custom taxonomy and selected terms
- Why isn’t the ‘no results’ being shown when a query returns no results?
- Build filter for post-type + multi taxonomies + multi terms
- Clean Custom URL for Serach + Custom Taxonomy
- Search only custom taxonomies
- WordPress autocomplete search with taxonomies
- Geographic search with taxonomy structure [duplicate]
- Display taxonomy with a maximum number of letters
- search using multiple taxonomies and keyword
- Taxonomy or Custom Field
- Multiple Drop-Down custom taxonomies search
- Drop-down filter doesn’t retrieve custom taxonomies
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- Product custom taxonomy is not found when space in name
- Keeping session instance of random display results over pagination breaks
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- Search custom taxonomy via query-string?
- How to exclude woocommerece product category in search results?
- use apply_filters return taxonomies custom post type
- How to filter a page title with custom taxonomies
- How to paginate with an query var appended to permalink?
- WordPress custom taxonomies new/edit post autocomplete
- Post not showing in my custom advanced search
- Sort Taxonomy List by Custom Values
- Include attachments with a custom taxonomy in search
- Custom taxonomy displayed in search results
- How to perform a search inside a specific taxonomy category
- Custom Taxonomy, shows empty value (home page of website)
- Advanced WordPress search form based on custom taxonomy and custom meta value
- Custom Search only for my Custom Taxonomy Page – data
- Search and filter with custom field in taxonomy
- Front End Post Save Child terms
- How to limit search to first letter of title?
- Pros and cons of using [taxonomy name] in place of [category name]?
- Echo taxonomy term meta on author.php
- is there any limit of length on creating custom taxonomies?
- Display an image instead of tag name?
- List taxonomies according to whether this post is in another taxonomy in taxonomy archive
- Pagination on custom taxonomy
- How to Filter custom post type by taxonomy?
- Custom Taxonomy
- How to use taxonomy term as a value of get_template_part?
- Take a custom taxonomy value and save as a standard Product Tag
- Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress
- Loop to display ONLY custom taxonomy parent information [closed]
- echo a specific custom taxonomy term on a different custom taxonomy archive
- How to show post list based on taxonomy term?
- Display Child Categories of Current Post ID
- Taxonomies specific to Page attribute template
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Infinite Scroll appending Next Product Category Term pages
- Count tags for current post and save into custom meta field (and update it on post edit)
- Custom Taxonomy Not Being Recognized by is_tax()
- How to truncate the description in the admin panel for a custom taxonomy
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- WordPress Taxonomy Menu
- Insert code on specific taxonomy archives
- get_term_children specific no id
- custom texonomy category child category list with parent head