WP_Query
will add the %
wildcard operators for a LIKE
query. Just remove those. As is your query looks like LIKE '%\\%rocket\\%%
which is not what you want. Try
var_dump($query->request);
And you can see that for yourself.
Related Posts:
- Can I force WP_Query to return no results?
- Search custom taxonomy term by name
- Want to redirect if search query match exact title of any post
- Pagination not working for Custom search form & custom result template
- How to support multiple search terms query within one process?
- How to search by title or tags exclusively?
- WordPress search exact match
- Pagination wont work with search results template [duplicate]
- How do I search WordPress by different fields without a plugin?
- 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
- Add custom search results to main WP search [duplicate]
- tax_query shows no results if nothing is selected
- Searching through different categories on different pages code is not working
- WP_Query’s “request” SQL Query
- Including only current user’s posts in search
- is_search was called incorrectly
- How do I search inside specific taxonomies in WordPress
- Modifying the Search Results
- Refine search results using WP_Query
- Search Posts with Custom Fields as query
- Complex date range with WP_Query and BETWEEN
- How to loop for every result found in the_content() when using the search query?
- showing all search result in one template
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- WP_Query Not Recognizing Taxonomy Parameter in Custom Search
- Custom Search Not Consistent with Results
- wp_query ‘s’, search filter with pagination is not working
- Editing the default wordpress search
- Multiple Search Terms WP_Query
- WP Query Args – Title or Taxonomy Value
- WordPress pagination not working on template search.php
- wordpress search word, “hello world” ===> ‘hello+world’ ===> ‘hello’, ‘world’
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- query_vars overriding WP_Query args
- Search by post id in a specific page then auto-redirect to searched post
- Search for “2nd” also returns “22nd” in wp_query
- How to make search for posts using get method?
- Categorising search results based on Custom Fields
- Add filter post_where and passing post_type argument
- using pre_get_posts for search results not found
- Search posts missing a particular custom field
- Replacing search results with custom external query
- wp_query search not taking keywords with together for multiple words
- Get a list of posts by specific category
- WordPress Custom Search Form Displaying Unexpected Results
- Search Page Returns Nothing
- Redirect Search to Form When No Product Results Are Found
- Issues with search after added meta_query
- Slow Query On Search
- Sorting search results with custom dropdown
- How To Keep Search Title the same on paged Results
- change posts_orderby of the callback wp_query?
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- Search.php – return number of results but cannot loop through
- Can I make a search query which includes a space?
- How to filter a static post page with ajax and $wp_query
- Searching not only by post name but also category
- $wp_query->found_posts not returning correct value
- How to search by slug and old slug in single API
- Block internal search queries with pre_get_posts and regex rules
- How to make the WP query search for the “s” arg in other places too
- Search Exact on WordPress – Relevannsi Solution Not Working
- Excluding posts from search results page with meta query not working
- Pagination repeating posts on search results
- I have problems with the search query using multiple post types
- WP_Query no result if keyword contains number
- Categories In English version showing not canonical URL, instead shows query search result
- Filter admin ajax data by url query
- How to extend WP_query to a specific table?
- Display Search Results by tag_ID in my search.php
- How to debug none working search query?
- getting posts by tags
- Add to search posts query array with post IDS which will appear first
- Custom Post Type WP_Query with filters and search
- Search with WP_Query, but ignore href URLs in anchor tags?
- Get posts by similar names and categories
- Logging search queries for logged-in users
- How to show terms from another taxonomy
- Search Field that allows options of “Match any keyword” or “Match all keywords”
- A very strange problem with search query
- Search format not matching taxonomy query
- How to make the default WordPress search return borader results
- Search Functionality broken by the wp 4.2 update
- Custom search (wp query by custom fields)
- WordPress WP_Query Array Custom search via taxonomies
- Custom Search Query – include only custom fields and title
- $wp_query when new WP_Query
- Search Query that Includes Custom Table
- Manipulating a query
- Query posts by custom fields
- Searching in specific custom post type
- Search (Custom Form, Custom Search Result)
- Why does WP_Query not search for two ‘meta_query’ keys separated with OR?
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- How does Show Posts based on a keyword search work in WP_Query
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- AJAX multiple search boxes not merging with array merge