I have this function in Wordpress that counts 10 users by default. I would like to change it from showing 10 users to infinite number. There should be no end to counting. How can I do this?
function get_random_followers($userid, $count = 10){
$followers = get_the_author_meta('followers', $userid);
/** if no followers at the moment */
if( !is_array($followers)){
$return = "";
} else {
$flw = array_pick($followers, $count);
$return = '<ul class="widget_follow">' . "\n";
foreach( $flw as $folow){
$return .= "<li>";
$return .= '<a href="' . get_author_posts_url($folow) . '" title="' . get_the_author_meta('display_name', $folow) . '">';
if( get_the_author_meta( 'user_custom_avatar', $folow ) != "" ) {
$return .= '<img src="' . get_the_author_meta( 'user_custom_avatar', $folow ) . '" alt="" />';
} else {
$return .= get_avatar( get_the_author_meta( 'user_email', $folow ), '40' );
}
$return .= '</a>';
$return .= "<li>";
}
$return .= '</ul>' . "\n";
}
echo $return;
}