You need to use the user_search_columns
filter to add the columns you want to search on.
The user_search_columns filter is used to determine which user fields
in the database are used when performing a search on user information.
https://codex.wordpress.org/Plugin_API/Filter_Reference/user_search_columns
Related Posts:
- How to search for (partial match) display names of WordPress users?
- Combining Meta_Query key values for one array
- pre_get_posts and search query for admin
- WP_User_Query search with multiple search queries
- Comparing between a negative and positive number
- Advanced Search by minimum/maximum values
- Searching by meta values showing inappropriate result
- WordPress, fetching users with an exact match in a string of comma separated values in user_meta
- Meta query: How do I return posts within a date period from a given month?
- meta_query issue with multiple numerics
- How to combine two get_users() array?
- Custom Query Content Filtering
- Search by meta_query
- How do I remove duplicate users from two merged WP_User_Query objects?
- Exclude posts with certain meta data from search results
- WP_User_Query not searching
- Form for search pages by meta datas
- WP search in metadata post
- How can i move search results onto a specific page?
- Unified search across separate WordPress installations
- Add custom fields to search
- How to insert a span inside a search form?
- Extending search query with additional $sentence value
- Disable Redirect to Product Page on Search Results Page in WooCommerce [closed]
- Get user role by using user_id in buddypress
- Create multiple Search functions for posts / custom post types and everything
- How to add WooCommerce SKU to search query?
- Which template holds what to display when search returns nothing
- Search form with Category and Sub Category
- WordPress search not searching pages’ content
- User Relationship
- Make Search Function include subdomain (blog.ourwebsite.com)
- Replace default WordPress search behavior with Sphinx
- How to disable WordPress Search from Url?
- Changing search slug from + to – (hyphen)
- Force is_search to always TRUE
- Add search box to page
- Plugin: Events Manager – Search by start date only
- Worried I have a funky .htaccess for WP site in light of strange search engine behavior
- Quick and Easy way to Add Search to the P2 Theme?
- Get PDF in media by ID
- Display post matching the exact search term
- Show only “Pages” – not posts – on search page
- Get most searched keywords in WordPress
- Search bar in table in wordpress
- Where does the Yoast SEO plugin set the Open Graph metadata?
- search filter add priority to post_type and add order to some post_type
- How do I add custom fields data to a search index?
- Empty search results return soft 404
- WP User Query Issues
- How do I search events between two set dates inside WP?
- searchform.php :: pass second query string variable with same value as ?s=
- Limit search to custom field
- How can I get a traceback on function calls?
- filter custom field values $min $max
- How to let users choose where to search for posts?
- How to have search results page sorted by post date
- Search Results Page outputs HTML code
- Search buddypress groups with querystring in url
- Displaying number of search results for each post type
- BuddyPress – Search members by name and also by username
- Include results with tags relevant to the search keyword with JSON rest API v2
- Search function does not work on mobile devices
- How Can I Make Dynamic Search Form While Converting Html To WordPress?
- Get the search element only on 404
- Specific website content
- Second page (and next) of search results redirects me to the home page
- search results to a variable in search.php
- Load search results into a div
- Search in posts’ attachments: title, caption, description
- How to order search results so a specific page appears first when user searches for a particular word?
- make link to search page
- Search results thumbnails different size
- WordPress User Search Based on Latitude and Longitude
- Remove gray header on Search Result page on WordPress
- How do i get The dropdown to have the value of the sub cat and custom fields
- Why are archived pages showing up in searches and able to be accessed?
- Enable query based wordpress search ?s=
- Partial searches for wp_usermeta
- Search terms in other language turns out to question mark and symbols
- Adding thumbnail to search results & changing content.php
- Create a custom and powerful search form
- How to search for categories instead of products in Woocommerce?
- Search results show only content by admin post authors
- Buddypress Activity search with OR query instead of AND
- How to exclude one post format from search result?
- Help with WordPress search
- Custom Search Form WP_Meta_Query – Filtering Custom Fields
- Relevanssi show only 1 result
- How To Change Url Doing Some Changes in Search Form
- Adding search box for admin on custom admin page
- Different search results with WordPress and Relevanssi
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- How do I create a search form that searches only within a custom post type?
- Two Querys in one Search – Category-Tag nightmare – HOW?
- Code in the excerpt of the search page
- WordPress REST API response – not returning results from custom taxonomy, only from title
- Members location sortable based on UK Postcode
- I had removed my phone number from my website footer, but months later it still appears once I look it up on google, how to remove it?
- search posts by POST ID