Try this:
$yoursearchquery = 'This is my search';
$users = new WP_User_Query(array(
'search' => $yoursearchquery,
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'shoe_size',
'value' => $yoursearchquery,
'compare' => 'LIKE'
),
array(
'key' => 'shoe_color',
'value' => $search_operation,
'compare' => 'LIKE'
),
array(
'key' => 'shoe_maker',
'value' => $yoursearchquery,
'compare' => '='
)
)
));
Related Posts:
- Getting all user metadata from user
- Reduce number of SQL queries inside WP_Query loop to fetch author data
- How to properly use AND / OR in custom search
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- WP_User_Query not searching numbers?
- How to add custom query filters in WP_User_Query
- SQL query equivalent to WP User Query
- Query wp_usermeta alongside wp_users
- WP User Query get all authors with last name starting with specific letter
- WP_User_Query unable to retreive all user at once
- Minimize database queries to user tables?
- How to display specific posts with WP_Query?
- WordPress search posts by author name with autocomplete
- pagination with numbers for WP_User_Query
- Meta_query on same meta key, with diffrenct values
- WP User Query with Custom Fields and Search Results
- array of meta values using WP_User_Query
- WP_User_Query and user posts
- construct complex queries with WP User Query
- query post by author gender
- WP_User_Query orderby meta_val_num
- Replace wp_query with wp_user_query
- Counting instances of words in the results of a post query
- Random users always showing same 8 users
- SQL to join u3g_users & u3g_meta_value with repeating data
- WP_User_Query Orderby Not Working
- Unusual high query of user meta data
- How to query 5 users in random who have published more than 10 posts
- using custom meta user data to run queries in WordPress
- Best way to query posts and order by relevancy to query
- WP_Query within save_post doesn’t include the item that triggered the action?
- Search Functionality broken by the wp 4.2 update
- Query Users by post count, last 30 days and display each users post count according to post type
- How ‘secure’ are loops?
- Get all user with both meta_value
- WordPress WP_User_Query ignores the `meta_query` when called from an Ajax function
- Order by DESC, ASC in custom WP_Query
- Exclude or Include category ids in WP_Query
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- Query Posts in a Predefined Order
- WP_Query based on URL parameters
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- How to query for a week using key => value WP_Query argument notation?
- Get only 1 Most Recently Modified Child Post from Parent
- Using AJAX to return search form results
- How to get a category in a list item class
- Should close $wpdb via $wpdb->close()
- Finding post content that begins with a specific character
- WordPress documentation – WP_Query arguments
- WP_Query with multiple meta fields filter?
- Using apply_filters(‘the_content’, $custom_query->post_content) alters output
- WP_Query Date Query After Minus Hour AND minus minutes
- Get posts for last working week in WP_Query
- wp query template tags not working
- How to select events within current week using wp_query
- how to link to detail page(single.php?) in a wp_loop
- Meta Query Array Error 500
- Display posts from only one post form in custom query and exclude in main query
- Get pagination working for custom loops within page templates
- How to get all product attributes for filters in WooCommerce?
- Fetch Record based on meta key dates
- How can I display list of all posts from a specific author, with publish dates in the future, on an author archive page (author.php)?
- Custom posts visible in admin, but truncate in public
- Query to get siblings and parent page
- Why does get_posts only show results for Admins or logged-out users?
- Limiting number of related posts
- how would i change post->ID to work correctly when querying pages?
- Pagination works in custom query loop but it doesn’t work in shortcode
- Event with multiple dates, display events chronologically
- WP_Query to get post on frontpage
- When listing child pages run out of memory
- How to avoid filling up an array each time I run a WP_query?
- How to SQL query posts IDs by categories AND authors?
- Admin: Custom Query Returning Permissions Error
- wp query remove posts from query then update max pages and posts found
- WP_Query Orderby meta_key and hide some meta_key
- Show X taxonomies of the latest published posts
- Combine relationship posts with existing wp_query
- Custom wp_query inside a conditional stament inside a template part doesn’t work: why?
- Slick slider for post doesn’t display anything
- What is the equivalent WP_Query of a SQL Query?
- create custom shortcode wp and put php code in
- WordPress Query custom ordering by temporary variable
- Check the stored / cached WP_Query with transients on post change
- New template file does not load category-specific post
- How to get only present and past posts with post_date
- How to create better WP_Query to look for date time which is anywhere between two meta values?
- Load WP Query with Ajax
- WordPress tax_query ignoring relation OR
- pagination functions are not working
- Fetch only categorized posts
- Wrap group of wp query posts to parent div by date/year
- Continue loop after $queryObject
- Wrote a WP Cron Plugin and it triggers a fatal error upon activation
- Get the type of an advanced custom field (ACF) in a WP_Query loop [closed]
- Getting Year & Date inside wpdb [duplicate]
- loop through custom post types with meta data
- Using Query In Post Type Archives
- Get posts by meta value except one post [closed]
- Display only posts with thumbnails