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?
- Modify WordPress Search
- Rewrite URL custom search query
- When should you use WP_Query vs query_posts() vs get_posts()?
- Can I force WP_Query to return no results?
- order by numeric value for meta value
- Post_count only shows the number of results per page
- Wp get all the sub pages of the parent using wp query
- Return only Count from a wp_query request?
- How to query for most viewed posts and show top 5
- WP Query where title begins with a specific letter
- WP_Query vs get_posts
- WP_Comment_Query pagination, delving into the unknown
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Make a WP Query search match exactly the search term
- Search custom taxonomy term by name
- WP_Query: query posts by ids from array?
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- Sort posts by category name and title
- How to uniquely identify queries?
- What is the most efficient way of querying posts based on visits and date for current day?
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Custom WP_Query order by post_meta and (author) user_meta
- Query WooCommerce orders where meta data does not exist
- WP_Query for WooCommerce Products
- pre_get_posts with get_posts
- Tracing the life of a query
- author.php with ACF and CPTs
- Want to redirect if search query match exact title of any post
- Query Custom Meta Value with Increment
- When should you use wp_reset_postdata vs wp_reset_query?
- Get posts by meta data OR title
- Identify which loop you are hooking into; primary or secondary?
- Perform query with meta_value date
- WP_Query ordered by custom field that is a date string?
- How to make an activities stream mixing posts and comments?
- Duplicate Queries
- How to query for a week using key => value WP_Query argument notation?
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- Pagination not working for Custom search form & custom result template
- How to support multiple search terms query within one process?
- How to create a WP_Query to search the Title or Tag?
- Show only oldest post by author
- Order posts by tags count?
- Pagination broken when merging search results with additional WP_Query
- SQL query equivalent to WP User Query
- Add and in the header while looping over custom query in page template
- How to get the posts published in last two days using WP_Query?
- Highlighting Sub topic in a post?
- Custom search form with empty parameters
- Which custom query am I in and how can I access its properties & methods?
- How to search by title or tags exclusively?
- WordPress search exact match
- Pagination wont work with search results template [duplicate]
- How to count post type that has a particular term?
- How do I search WordPress by different fields without a plugin?
- Multiple keyword search
- Finding the next 5 posts
- how to retrieve specific product attribute value in an sql query?
- Using next/previous_posts_link with customised search
- WordPress custom search form with pre_get_posts not work
- Dynamically Override Fancy Title – Part II
- Search – Ajax – Alter Query Parameters with Pagination
- Transient pagination not working properly
- Foreach-generated custom tax queries, each with an ajax “Load more” button
- Can not switch the queried post in pre_get_posts hook
- Add custom search results to main WP search [duplicate]
- view queries made?
- meta_query on a date range using an array of values
- WP_Query Performance Issues with meta_query
- Multiple search queries on one page
- WordPress custom archive page
- How to speed up wp_query, took more 5s to run against 100k posts
- WP_query category__in not working, only pulls from first category
- How to detect custom query inside `posts_where` hook?
- tax_query shows no results if nothing is selected
- Pass the same object to multiple widgets in a template with one query
- Is temporarily overwriting $wp_query a bad idea?
- Get the post permalink within the loop but without additional DB query
- Query Set Order By Author
- List the 5 most recent child pages
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Retrieve or Query Pages by ID
- How do you query wordpress posts using a math formula between multiple meta field values?
- Searching through different categories on different pages code is not working
- Custom Post order for homepage