Order the users by the date of their latest post
Put this in your functions.php: function get_users_ordered_by_post_date($args=””) { // Prepare arguments if (is_string($args) && ” !== $args) parse_str($args, $args); $asc = (isset($args[‘order’]) && ‘ASC’ === strtoupper($args[‘order’])); unset($args[‘orderby’]); unset($args[‘order’]); // Get ALL users $users = get_users($args); $post_dates = array(); if ($users) { // For EACH user … foreach ($users as $user) { $ID = $user->ID; // … Read more