PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Random
  4. Random Posts for Query Loop Block
Random Posts for Query Loop Block icon

Random Posts for Query Loop Block

Adds "rand" to the REST API orderby options so the Query Loop block can use random post order safely without breaking the Site Editor preview.

By Abhay Rautela·Random·Free
00
·0 active installs·Updated 2 months ago
DownloadVisit HomepageCompare

As of April 2026, Random Posts for Query Loop Block is a WordPress random plugin with 0 active installations and a 0/5 rating0. It has been downloaded 157 times in total. Requires WordPress 6.0+ and PHP 7.4+. Available on WordPress.org since 2026. Recently updated within the last 3 months. Top alternative: Random Post Plugin – Redirect URL to….

0/5Rating
0active installs
157total downloads
3 monthssince 2026

Overview

The Query Loop block in WordPress does not include a “Random” ordering option in the sidebar UI.
However, WordPress core does support orderby = rand in WP_Query.

The problem:
Using "orderBy": "rand" inside a Query Loop block can cause the Site Editor preview to fail, because rand is not included in the REST API schema for posts.

This plugin fixes that by extending the REST API orderby enum so the editor recognizes "rand" as valid.

✔ What this plugin does

  • Adds "rand" to the REST API orderby enum for posts and pages.
  • Allows the Query Loop block to use "orderBy": "rand" safely.
  • Prevents JSON errors and broken previews in the Site Editor.
  • Makes “random post” layouts work reliably both in the editor and frontend.

⚠ What this plugin does not do

  • It does not add a “Random” op…
Read full description on WordPress.org

Screenshots

Ratings & Reviews

00 reviews
5 ★
0
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress6.0+ requiredTested up to 6.9.4
PHP7.4+ required

Top Alternatives to Random Posts for Query Loop Block

Random Post Plugin – Redirect URL to Post icon
Random Post Plugin – Redirect URL to…
54.0K+ installsUpdated 10 months ago
ViewCompare
Related Products for WooCommerce icon
Related Products for WooCommerce
4.93.0K+ installsUpdated 6 months ago
ViewCompare
Random Post for Widget icon
Random Post for Widget
4.72.0K+ installsUpdated 3 years ago
ViewCompare
A Random Number icon
A Random Number
3.7800 installsUpdated 1 year ago
ViewCompare
Better Random Redirect icon
Better Random Redirect
4.6700 installsUpdated 10 months ago
ViewCompare
View all random plugins →

Frequently Asked Questions

Changelog

1.0.5

  • Initial release. Adds rand to the REST API orderby enum so Query Loop can safely use random order.
View full changelog on WordPress.org

Contributors

Abhay RautelaAbhay Rautela
Plugin Info
Version
1.0.5
Last Updated
Jan 7, 2026
WP Requires
6.0+
Tested Up To
6.9.4
PHP Requires
7.4+
Active Installs
0
Downloads
157
Added
Jan 7, 2026
Business
Free

Tags

randomorderbygutenbergquery loopblock-editor

Developer

A
Abhay Rautela
1 plugins0
View all plugins →

Quick Compare

Random Posts for Query Loop Block vs Random Post Plugin – Redirect URL to…→Random Posts for Query Loop Block vs Related Products for WooCommerce→Random Posts for Query Loop Block vs Random Post for Widget→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.