Title: Pick Random Users
Last modified: April 8, 2021

---

# Pick Random Users

 *  [Anton_Th](https://wordpress.org/support/users/anton_th/)
 * (@anton_th)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/)
 * I’d like to feature 4 randomized subscribers on a page, different at each page
   load.
 * Is there another param (‘randomized’?) that could be used to take 4 random picks
   instead of the first four?
 * Thanks in advance!
 * Obviously this doesn’t work:
 * [users role=member orderby=rand count=4][user avatar]
    [user] [user dct_position][/
   users]

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Peter Berger](https://wordpress.org/support/users/peterpolow/)
 * (@peterpolow)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/#post-14294932)
 * What happens when you use order=rand instead of orderby=rand?
 *  Thread Starter [Anton_Th](https://wordpress.org/support/users/anton_th/)
 * (@anton_th)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/#post-14295122)
 * You’re a genius.
    Can’t imagine that I overlooked that feature…! Thanks so much!
 *  Thread Starter [Anton_Th](https://wordpress.org/support/users/anton_th/)
 * (@anton_th)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/#post-14295371)
 * Oops Peter – That didn’t work: it now takes the LAST 4 (alphabetically)…. 🙁
 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/#post-14297588)
 * That does not work for `users` – only for `loop`
 * See documentation for user:
 * orderby – id, name, login (default), email, url, registered, post_count, field,
   field_num
    order – ASC – alphabetical (default) or DESC (new to old)
 *  Thread Starter [Anton_Th](https://wordpress.org/support/users/anton_th/)
 * (@anton_th)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/#post-14297659)
 * [@polarracing](https://wordpress.org/support/users/polarracing/) thanks! order
   =rand does however do something, it lists alphabetically descending, so from 
   Z-A. (not documented afaik).
    I’m trying to get it done in a php snippet now.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Pick Random Users’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Anton_Th](https://wordpress.org/support/users/anton_th/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/pick-random-users/#post-14297659)
 * Status: not resolved