Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

user-ask

not sure what going on here

// WP_User_Query arguments
$args = array(
	'role'           => 'Super Admin',
	'include'        => array( jbsurv, admin ),
	'exclude'        => array( nononannette ),
	'search'         => 'GDPR-ready',
	'search_columns' => array( 'user_readiness' ),
	'number'         => '33',
	'order'          => 'ASC',
	'orderby'        => 'user_name',
	'count_total'    => true,
	'fields'         => 'all',
);

// The User Query
$user_query = new WP_User_Query( $args );

// The User Loop
if ( ! empty( $user_query->results ) ) {
	foreach ( $user_query->results as $user ) {
		// do something
	}
} else {
	// no users found
}