Hi,
I’m looking to be able to grab for instance custom fields and the country field etc like below
<?php $blogusers = get_users( array( ‘role__in’ => array( ‘author’, ‘subscriber’ ) ) ); ?>
<?php foreach ($blogusers as $user):
$user->ID
$user->first_name
I would expect something like
$user-uwp_country
$user->customfield_key
as the shortcode is not suitable here.
I’d prefer to now have to use $wpdb->getresults if possible.
Thank you!