I am currently calling a user's nicename in a function I have:
$users = $user_query->get_results();
foreach( $users as $user ):
echo $user->user_nicename;
I'm trying to call the user's Nickname instead, but nothing I do is working such as:
echo $user->user_nickname;
Is there a special way you have to call a user's nickname?
Thanks
$user_query->get_results()
return?