Supporting Members

[insert_php]
//https://phptechnologytutorials.wordpress.com/2013/08/05/get-users-list-by-role-in-wordpress/
$args = array(
‘meta_query’ => array(
array(
‘key’ => ‘Club Roles’,
‘value’ => ”,
‘compare’ => ‘>=’
),
)
);
//$member_arr = get_users($args);
$member_arr = get_users(“role=assocaite”);
if ($member_arr) {
foreach ($member_arr as $user) {
?>

id, ‘Phone Number’, $single );
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
}
} else {
echo ‘no users found’;
}
//echo var_dump($member_arr));
[/insert_php]

First Last Email Phone Member Type Club Roles Picture
‘;
echo $user->last_name;
echo ‘
‘;
echo $user->first_name;
echo ‘
‘;
echo ’email’;
echo ‘
‘;
echo get_user_meta( $user->id, ‘Phone Number’, $single );
echo ‘
‘;

foreach($user->roles as $value){
echo $value.’
‘;
}

echo ‘

‘;
foreach(get_user_meta( $user->id, ‘Club Roles’, $single ) as $value){
echo $value.’
‘;
}
echo ‘
‘;
echo get_avatar( $user->id, 64 );
echo ‘