Hello @hattavb,
You must do a second query using get_user_meta() and the ID of the user from WP_User_Query in order to get all the data from the custom fields attached to the user.
Example:
//WP_User_Query loop
$usermeta = get_user_meta($user_id);
Will return an array with all the fields for that user_id.
Regards.
thank you
sir thats helped me out )
but is there a way the fields by custom field name
for example
echo get_user_custom_field(‘the_biography’);
echo get_user_custom_field(‘the_avatar’);
?
thank you sir
got it
😀
<?php echo get_user_meta( $user_id, ‘nickname’, true ) ; ?>