WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
include meta_key/value in get_users (1 post)

  1. Jacob Dubail
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.