exclude roles from overview
Yes, the get_users_of_blog() function is deprecated, and the reason your code breaks after using get_users() is the ->user_id part, you should use ->ID instead. $blogusers = get_users(); if ($blogusers) { foreach ($blogusers as $bloguser) { $args = array( ‘author’ => $bloguser->ID, ‘showposts’ => 1, ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) … Read more