You can use pre_get_posts
to modify the main query, but you will need to create new queries for the other searches. Use get_query_var('s')
to get the search terms and create new WP_Query
objects to perform your search.
Without more information it is hard to provide much more detail to the answer.
Related Posts:
- WP Query where title begins with a specific letter
- Custom category search box for WordPress
- Modify WordPress Search
- When should you use WP_Query vs query_posts() vs get_posts()?
- When to use WP_query(), query_posts() and pre_get_posts
- Get post ids from WP_Query?
- Nested meta_query with multiple relation keys
- Can I force WP_Query to return no results?
- Some doubts about how the main query and the custom query works in this custom theme?
- Post_count only shows the number of results per page
- Wp get all the sub pages of the parent using wp query
- How to query for most viewed posts and show top 5
- WP_Query vs get_posts
- Search custom taxonomy term by name
- Using OR conditions in meta_query for query_posts argument
- Query Posts in a Predefined Order
- Order posts by ID in the given order
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Query Multiple Post types each with own meta query
- Get posts by menu ID
- Get the number of posts from the current page results
- WordPress Custom Query to show posts from last x years
- Tracing the life of a query
- Want to redirect if search query match exact title of any post
- Query Custom Meta Value with Increment
- How to know which one is the main query?
- Get posts by meta data OR title
- Perform query with meta_value date
- Using is_main_query to select custom post type on certain page
- WP_Query ordered by custom field that is a date string?
- get query’s query string
- Meta Query with date and time on the same Day before given time
- get_the_title($postID) OR get_the_title()?
- Display Posts by modifying the where clause only for my query
- Pagination not working for Custom search form & custom result template
- How to support multiple search terms query within one process?
- Pagination broken when merging search results with additional WP_Query
- How do I create my own nested meta_query using posts_where / posts_join?
- Custom search form with empty parameters
- How to use filter hook posts_join for querying taxonomy terms in posts_where?
- Best practice for multiple queries on page
- How to search by title or tags exclusively?
- WordPress search exact match
- Pagination wont work with search results template [duplicate]
- How to Get All Posts but the Private ones?
- How do I search WordPress by different fields without a plugin?
- Multiple keyword search
- Using next/previous_posts_link with customised search
- WordPress custom search form with pre_get_posts not work
- Search – Ajax – Alter Query Parameters with Pagination
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Add custom search results to main WP search [duplicate]
- How to find out what “Blog pages show at most” is set to [duplicate]
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- tax_query shows no results if nothing is selected
- Pass the same object to multiple widgets in a template with one query
- Retrieve or Query Pages by ID
- WP query exclude post within the last month / only show over 1 month old
- WordPress query for most recent posts from multiple categories
- 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
- How add a custom posttype name using ACF field to a query post array
- How to implement time filter to show random post 1 month for one category and 3 months for other categories
- Too many posts cause slow load when paginating
- WP Query search for attachments and their exact title
- WP_Query’s “request” SQL Query
- Including only current user’s posts in search
- Page navigation doesn’t show when query category
- Multiple instances of Featured Image Query
- How can I pick a single post from the latest 3?
- 2 loops on page – one with orderby rand second orderby date
- How do you Query posts with nothing in common?
- Query post with meta_query where date is not in future
- is_search was called incorrectly
- Next/Prev posts on same page
- How do I search inside specific taxonomies in WordPress
- Modifying the Search Results
- Refine search results using WP_Query
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Order a query result by a numeric meta key even if it does not exist, but put the posts with meta key first
- Search Posts with Custom Fields as query
- Complex date range with WP_Query and BETWEEN
- Query with custom taxonomy not working
- Creating a custom search for a specific post type
- Query posts by specific word on title
- 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?
- WP_Query last five posts, simply ordered by meta_value
- Query with a meta value inside a given range
- WP Pagination on Posts Search Results Page resulting from AJAX WP Query
- Can’t search posts using WP_QUERY inside AJAX Function
- How to loop for every result found in the_content() when using the search query?
- Assigning a meta_query value based on regexp to wp_query fails
- WP_Query “OR”: Find posts by ID, Name or Post Title?
- Store sticky post’s ids in a transient
- showing all search result in one template
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Five posts from a category in footer
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- WP_Query Not Recognizing Taxonomy Parameter in Custom Search