what I’m trying to do is create a list of users from one specific role. I actually have it working, but it’s only pulling one user instead of all of them from that role. If anyone can help point out where I’m going wrong it would be a big help.
Here’s my code:
foreach (get_users () as $user)
$user = new WP_User ($user->ID);
$args = 's2member_level1';
$users = get_users( $args );