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

  1. Jacob Dubail
    Posted 3 years 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.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.