I would do it this way:
$args = array(
'meta_query' => array(
array(
'key' => 'options_futures',
'value' => 'Options',
'compare' => '='
)
)
);
$users = get_users($args);
Related Posts:
- SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
- How to get users by a custom field / by user meta data?
- How do you add a custom option to user data?
- Querying Email Addresses for a List of Users with Same Last Name?
- Show User Their Password
- How can I sort get_users() by any value (last_name, user defined fields and more)
- get_user_meta Short Profile Section
- WordPress User Profile Upload – If page is saved file reset
- WP_User_Query pulling ACF to loop
- Passing args to WP_User_Query am I using meta correctly?
- UPDATE on SELECT results. A SQL query to swap Author with Meta Box value
- WordPress SQL Issue not returning correct reselts
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- check for duplicate user meta data before updating
- Custom Field Repeating When Using foreach
- Front-End User Profile
- Save custom field types with this function…?
- Delete user meta but only if found in array
- How to get image path from id using SQL
- Extend WP_User_Query or WP_User to return all custom fields?
- Echo text if field under user_meta is empty with get_users()
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- SQL Query to copy value of a meta_key into another meta_key
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Add custom fields to search
- How to rename a custom field?
- So much data in postmeta
- Can I count the number of users matching a value in a multiple value key?
- Save custom user meta on registration
- What is the advantage of the wp_options design pattern?
- Retrieving custom fields with $wpdb->get_results
- Search multiple meta keys at once
- How to update serialized data in the user meta data
- Up/Down voting system for WordPress
- Upload files programmatically to users
- How to get top 10 user is based on user meta value
- Get multiple custom field values in a $wpdb query [duplicate]
- Displaying additional User Contact Information
- Separate table or usermeta
- meta_query for a string inside a meta field containing a comma-separated list
- How to update custom user meta field in wp?
- Get all posts that do not have a specific custom field without using a subquery
- Order query by meta_value with multiple custom fields
- ACF: How to get the full field name (meta_key) by a field key?
- How do I create a column in Users list and display user data from custom registration field
- Modify Database in Multi-Site wp_usermeta table
- How to save multiple options from a dropdown in user profile
- How to show a gloabl message on a user profile page (in back end)?
- query usermeta from custom field
- custom avatar removal
- mysql query two database tables, users and usermeta and sort by custom meta int value
- How to add upload video option in wordpress for user?
- Customizing user data
- Linking Custom Fields to Database Records
- Meta Query And/Or
- Show user info in a hovercard [closed]
- Customizing WP user profile with custom fields
- Custom Query based on custom field of a single post
- Iterate through users and display users meta info at front-page
- Build index page from custom fields
- How to add fields in custom registration form, validate it and aave to db? [closed]
- Increment user meta data by 1 each time a page is visited
- Front end register with custom fields
- How to update user profile custom fields
- SELECT from wp_users, get Displayname too
- Help setting up a sql query
- SQL: Select wordpress posts with given text string and add a custom field to them?
- Show array of meta_value in Edit Post Coloum
- wpdb function insert doesn’t work
- Add WordPress user custom meta to chartjs vertically stacked chart in Divi theme
- Adding data to User profile
- Change word in woocommerce product category custom field
- How to save multiple values with same meta_key, each value linked to another tag id
- Safely changing UserID’s, re-using deleted UserID’s and automatically using deleted userID’s instead of an increment
- How to save multiple custom user profile fields using repeater JQuery
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- SQL query to change the value of a Custom Field
- author.php not showing content if Author has no Posts
- searching by keywords in post’s metas or pagination links problem
- Getting user’s data, by custom field lookup (meta)
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- Update custom table on metabox POST
- ACF plugin and field update
- Redirecting to an external URL
- Query Custom Fields in Searchform
- Populate a select box with data stored in the database?
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- Is it possible in WordPress
- Convert all dates in field to Unix time, except those already in Unix time
- wordpress simple post multi rating with post_meta and user_meta
- query specific posts according their custom fields, using sql SELECT
- How do i get a specific user metadata using custom metavalue outside of wordpress?
- Semi-Private Comments + page comments -> is it possible?
- Alter SQL query to return posts with unique custom field value, no duplicate values
- Update field name without losing the value
- Custom registration form and custom field
- Can’t sort custom column on user.php by number / meta_value_num?
- Create Unique and Customized User ID for Website Members in WordPress
- Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)