Actually, rand is not a valid argument for orderby in the WP_User_Query class (it is in the WP-Query class). So, it should default to user_login, giving you an alphabetical list. Also, you should get all users that fit the member and exclude criteria from this query, not just eight.
This suggests there is other code interfering with yours.
My suggestion would be to start with adding 'number' => 100 to $args. That should overrule any other code limiting the amount of results. You could then use shuffle to randomize the array returned or pick some random elements from the array with array_rand.
Related Posts:
- Getting all user metadata from user
- How to add custom query filters in WP_User_Query
- WP User Query get all authors with last name starting with specific letter
- Reduce number of SQL queries inside WP_Query loop to fetch author data
- How to query 5 users in random who have published more than 10 posts
- Query Users by post count, last 30 days and display each users post count according to post type
- Searching user meta using WP_User_Query
- Filter user list that meta_value is empty
- Query wp_usermeta alongside wp_users
- SQL User Query by Multiple Roles using PHP
- WP_User_Query unable to retreive all user at once
- Sort users by “birthday” using WP_User_Query
- Hide Administrators From User List except current user (administrator)
- WordPress search posts by author name with autocomplete
- pagination with numbers for WP_User_Query
- How to display user order by role
- Import wp users via one click demo option
- Dynamic User Id
- Get users that likes the post
- Prevent author bio page from showing in search results
- Get multiple users with meta value in one query and populate WP_User class
- Display if author page is author page of current user
- array of meta values using WP_User_Query
- Get user first name from custom endpoint
- How to properly use AND / OR in custom search
- WP_User_Query and user posts
- construct complex queries with WP User Query
- Storing an array of objects related to each user
- Create one-use post dynamically, add to main query, do not insert post (user profile view)
- WP_User_Query orderby meta_val_num
- Query to get last posts from authors of blog
- Replace wp_query with wp_user_query
- Query pages created by deleted users
- Query posts by post type, author and post meta
- SQL to join u3g_users & u3g_meta_value with repeating data
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- WP_User_Query Orderby Not Working
- Set “editor” role to existing user
- How to query users by post count no less than 10
- Merge wp-query and get_users
- Get all wp_users sort by metakey
- Logging search queries for logged-in users
- WP_User_Query not searching numbers?
- List users by Year of Birth using a foreach loop to dynamically populate years and data
- Show subscriber id in loop
- Search Functionality broken by the wp 4.2 update
- Get users query makes the site loading time too big?
- Get all user with both meta_value
- WordPress WP_User_Query ignores the `meta_query` when called from an Ajax function
- Orderby meta _value that is saved as an array
- Group users by meta field, with name of meta field as group title
- Complicated `orderby` based on text in custom field
- Using a Query Loop Block with Variables (Custom Meta)
- Posts published last 10 minutes
- Make meta query treat meta_value as 1 or 0
- Getting additional columns from sql
- get all posts associated with a custom taxonomy
- WordPress query posts with multiple post_meta data
- Assign custom parameter to each post in query
- complex get_posts() query to select child pages
- How to add $args to any running wp_query from function.php?
- Can I use paginate_links() to add a pagination list, yet prevent it from inserting links?
- How to remove only the latest sticky post from the loop
- var_dump of WP_Query object is not empty, while .have_posts() return false
- How to view all posts of current day as default in admin
- How to show list of posts with custom field value (a date) that are coming soon
- WP_Query meta compare must include ALL array values
- How to sort queried pages by an array of page ids?
- How to query for a page, get data, then query for child pages of that page
- How can I change the term “Published” next to # of posts published on WordPress dashboard All Posts page?
- Multiple loops breaking side bar
- $post in wp_query?
- meta_query weird behaviour, static int will work, but not user data
- How can I return only IDs from the `posts` REST endpoint?
- search through “product title” using WP_Query?
- Excluding posts from search results page with meta query not working
- Counting instances of words in the results of a post query
- WP_Query no result if keyword contains number
- WP_QUERY order posts by two combined meta_value dates
- Order by value of Custom Field using url string
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- Custom Post Type Query by user id
- Is the ‘parse_query’ filter still valid to change filtered content on admin list view?
- Get Sticky User in user loop based on user role
- WP_Query returns empty if meta_query has more than 7 values
- How to order users alphabetically by name? in plugin UPME
- query.php – multiple is_category functions
- Custom query with post_class filter using current_post not working
- Overwriting auto-appended NOT IN query in WP_Query
- posts_per_page not returning correct number of posts
- query_posts with sorting on a custom datestamp
- Conditionals in WP_Query
- Why WP_Query in functions.php is not working when get_posts works?
- Next / previous posts link doesn’t show up with Posts 2 Posts
- query by meta value then date and not empty meta value
- Issue with sorting by post date and custom post type
- Can’t get LIKE to work with wp_query [closed]
- WP Query returning all posts when Meta_query is null
- Inherit args from the main wp_query or wp_comment_query to my custom query
- Filter on one post type with taxonimy and get other post type