• Hey all,

    I’m doing a get_users and want to include a custom field in the query, but it is not coming through.

    $args = array(
    	'meta_key' => 'bs_order',
    	'fields' => 'all_with_meta',
    	'who' => 'authors',
     ); 
    
    $users   = get_users($args);

    if I do one or the other or both (meta_key or all_with_meta), the query doesn’t include the field “bs_order”. Yes, I confirmed this is the name of the field, and a variety of users include a value to this field.

    Thanks for looking.

    -J

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  • The topic ‘include meta_key/value in get_users’ is closed to new replies.