Title: How to return random posts using Query Loop
Last modified: January 24, 2024

---

# How to return random posts using Query Loop

 *  [AForumUser](https://wordpress.org/support/users/aforumuser/)
 * (@aforumuser)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/how-to-return-random-posts-using-query-loop/)
 * I’m creating a test site using twenty twenty four locally before uploading to
   my host. I’d like to use the Query Loop block to display related posts but there’s
   no option to “Order by” random order.
 * There are a few instances when I would like to show posts from a related category,
   but in a random order. Sometimes I would also like to show posts from _all_ categories,
   but again in random order.
 * Are either of these possible without downloading a third-party plugin? If not
   possible right now, will it be introduced in the future?
 * Thanks for any advice.

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

 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/how-to-return-random-posts-using-query-loop/#post-17379493)
 * Hi [@aforumuser](https://wordpress.org/support/users/aforumuser/) – at the moment
   that isn’t possible (for a variety of performance reasons). But there’s definitely
   lots of discussion around it – and you can feel free to add your voice on this
   development/Github issue here:
   [https://github.com/WordPress/gutenberg/issues/40481](https://github.com/WordPress/gutenberg/issues/40481)
 *  Thread Starter [AForumUser](https://wordpress.org/support/users/aforumuser/)
 * (@aforumuser)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/how-to-return-random-posts-using-query-loop/#post-17380178)
 * Thank you for confirming, and I appreciate the link. I’ll check it out.

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

The topic ‘How to return random posts using Query Loop’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwentyfour/1.5/screenshot.
   png)
 * Twenty Twenty-Four
 * [Support Threads](https://wordpress.org/support/theme/twentytwentyfour/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwentyfour/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwentyfour/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwentyfour/reviews/)

## Tags

 * [blocks](https://wordpress.org/support/topic-tag/blocks/)
 * [fse](https://wordpress.org/support/topic-tag/fse/)

 * 2 replies
 * 2 participants
 * Last reply from: [AForumUser](https://wordpress.org/support/users/aforumuser/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/how-to-return-random-posts-using-query-loop/#post-17380178)
 * Status: not resolved