I know you asked for no plugin suggestion but I thought I’d share the solution I commonly use for creating advanced search forms in WordPress.
This is not a plugin but a PHP framework for building advanced search forms in WordPress. It has served me especially well with custom post types and creating search forms that filter results using custom meta values, taxonomies and more.
The framework enables you to set up a customized search form that displays result using variables passed from your search form to WP_Query.
You could use this framework either in your theme or in a plugin. Their documentation is also very good.
Hope this helps!
Herman
Related Posts:
- How do I search inside specific taxonomies in WordPress
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Creating a custom search for a specific post type
- Editing the default wordpress search
- Modify Search Query if original Query gave no results
- Get a list of posts by specific category
- Add to search posts query array with post IDS which will appear first
- Search has query that will return no results
- WP Query – Search in title or author_name
- How to show terms from another taxonomy
- How can I modify standard search query to include also ACF custom fields values?
- Search Functionality broken by the wp 4.2 update
- Search query alteration not working for meta values
- Search results stuck on page 1
- Advanced Search – Is this possible?
- Post_count only shows the number of results per page
- Return only Count from a wp_query request?
- WP Query where title begins with a specific letter
- WP_Query: query posts by ids from array?
- pre_get_posts with get_posts
- author.php with ACF and CPTs
- Query Custom Meta Value with Increment
- Identify which loop you are hooking into; primary or secondary?
- How to make an activities stream mixing posts and comments?
- Pagination broken when merging search results with additional WP_Query
- SQL query equivalent to WP User Query
- Multiple keyword search
- Finding the next 5 posts
- view queries made?
- Pass the same object to multiple widgets in a template with one query
- What is considered a default query for the request filter?
- $wpdb insert is not work
- Pass array of taxonomy terms to wp_query
- How to reduce the number of queries?
- Custom Search Result Page displaying only 1 result.
- How to query a custom post type with a taxonomy filter but display post type archive page?
- List of the years with posts presented
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Search pages that are a child of the current page
- Query custom post type by custom taxonomy (category slug)
- Change query_posts to WP_Query in page but does not work
- WP Query with custom Shortcode
- Include tags in WP_Query
- Optional Meta Query
- Set conditional on template based on referring page slug
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Iterating through $wpdb query without using get_results for large query results
- Slow page loads due to WordPress Core Query
- Filter posts in category archive page by year using a dropdown
- Extend product search with meta in WooCommerce
- Search for “2nd” also returns “22nd” in wp_query
- Include data from custom table in WP_Query
- How to get a query variable?
- date_query seems to be ignored by wp_query
- WooCommerce search products between price range using WP_Query
- Better wordpress attachment query than this
- Is_single() conditional tag returns null in query
- Is it possible to query from external database? [duplicate]
- Can’t sort custom post type by random
- Show a 404 error page if Public query variable’s value doesn’t exist?
- How to set up hierarchical relationships without using plugins / meta query
- How to avoid bypass of search bar rules?
- Hide products in uncategorized category from search results
- How do you determine if a result in a search query is a post or a page?
- wordpress udpate query not equal to
- Ignore image urls in wp_query search
- Excluded category from loop
- Posts limit on homepage (genesis framework)
- meta_query where the meta value is not the post title
- WordPress search WP_Query to cover multiple post types and their custom fields?
- Multi-layered WP_Query
- `offset` WP_Query argument dont work via `pre_get_posts`
- How to search post titles with whole words only, but not the exact word only?
- Pagination of custom page with custom fields query
- setting offset to category number in archive page
- Woocommerce Get Orders By Meta Value
- Multiple WP_Query args combinations according to post type
- Move some posts to end of sort order, even if there is a sort in the wp_Query already
- Query Posts | Combining multiple form inputs into query arguments to generate one filter result
- How to query 5 users in random who have published more than 10 posts
- WordPress search page pagination displaying but not functional
- Is my code correct?
- Limit default Search query to post_title
- Meta query doesn’t remove placeholder escape before query
- How to show post title in content editor in backend?
- WP Query works outside a function, not inside a function
- Using URL variables on a custom WP_Query
- How to get query results for the next page
- WordPress WP_Query offset parameter not working with search parameter
- Using WP_Query to re-query and sort results using a date?
- Loop through multiple custom fields with increasing number
- How to organize a WP_Query’s list of posts by category and display category title?
- WordPress Query showing multiple titles
- custom query to get posts
- confirm my booking with phone number
- Custom search: Search posts but display parent page in results
- shortcode using multiple WP_Query’s with multiple category names not fully functional
- WordPress query very slow on +/- 300k DB entries and 7 INNER JOIN
- Help with showing text when something is entered in my search bar
- A Depth Like Parameter For “get_posts”