I have many users on my website, out of some has status "elite". I am saving this status in meta key/value for each user ('meta_key' => 'elite_member', 'meta_value' => '1'
).
I want to display randomly 2 user profiles in rotation on my site home page which has status "elite" so that each user profiles will appear same no. of times in rotation. I am able to get all the users with meta_key "elite" and meta_value="1"
$elite_members=get_users(array('meta_key' => 'elite_member', 'meta_value' => '1'));
But I am not able to get how to display 2 user profiles in rotation so that each user will get same no. of chance to appear on home page.