🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Random Posts for Query Loop Block icon
Maintained Tested up to 6.9.12

Random Posts for Query Loop Block

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.

Active installs30+10+ tier
Downloads · 30d129▲ +101.6% vs prev. 30d
Rating—0 reviews
Health score39/100At risk
All-time downloads586Since Jan 2026
Support resolved—No recent threads
RequiresWP 6.0PHP 7.4+
Downloads · 7d50▲ +117.4% week over week
Our verdict

Consider an alternative

Random Posts for Query Loop Blo… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites and was last updated 11 months ago, and scores 39/100 on our health check.

  • Small user base (30+ active installs)
  • Very few reviews so far
  • Only tested up to WordPress 6.9 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4913Sep 4Oct 18Dec 2
Yesterday18
Daily average (1y)2
Peak day21Jan 7, 2026
Last 12 months603

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Random Posts for Query Loop… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
block-editor >100 10,000 Best block-editor plugins →
gutenberg >100 8,556 Best gutenberg plugins →
orderby #82 615 Best orderby plugins →
query loop #54 1,668 Best query loop plugins →
random >100 4,045 Best random plugins →

Version adoption

Share of active sites per release.

  • 1.0100.0%

About Random Posts for Query Loop Block

From the official readme · v1.0.5

Description

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” option to the Query Loop UI dropdown.
    (That UI is defined in Gutenberg’s JavaScript.)
  • You must still set "orderBy": "rand" manually using the Code Editor.

Example use case

Want your homepage, blog, quotes site, testimonials, or featured-section to show
a different post every time the page loads?

Install this plugin → open the template → switch to Code Editor → set "orderBy": "rand".

Installation

  1. Upload the plugin folder to /wp-content/plugins/random-posts-for-query-loop-block/
    or install it via Plugins → Add New → Upload Plugin.

  2. Activate the plugin via Plugins → Installed Plugins.

  3. Open the Site Editor and edit a template or page containing a Query Loop block.

  4. Switch to Code Editor
    (top-right kebab menu → Code editor).

  5. Find the wp:query block and set:

    “orderBy”: “rand”

Changelog

Initial public release. Safely enables random ordering in the Query Loop block without breaking the Site Editor preview.

1.0.5

  • Initial release. Adds rand to the REST API orderby enum so Query Loop can safely use random order.

Full changelog on WordPress.org →

Screenshots

Query Loop block configured with "orderBy": "rand" in the Code Editor.
Query Loop block configured with "orderBy": "rand" in the Code Editor.
Site Editor preview working correctly with random post ordering enabled.
Site Editor preview working correctly with random post ordering enabled.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Random Posts for Query Loop B… alternatives

All block-editor plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Classic Editor Classic Editor Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta… by WordPress.org 8M+ ★★★★★★★★★★ 4.9 (1.3K) 6 months ago 64
2 Advanced Editor Tools Advanced Editor Tools Extends and enhances the block editor (Gutenberg) and the classic editor (TinyMCE). by Andrew Ozz 1M+ ★★★★★★★★★★ 4.5 (354) 3 months ago 71
3 Disable Gutenberg Disable Gutenberg Disable Gutenberg Block Editor and restore the Classic Editor and original Edit Post screen… by Jeff Starr 500K+ ★★★★★★★★★★ 5 (735) 4 weeks ago 97
4 Shortcodes Ultimate – Content Elements Shortcodes Ultimate – Content Elements Add 50+ shortcodes with live preview for tabs, accordions, buttons, FAQs, sliders and… by Vova 400K+ ★★★★★★★★★★ 4.9 (5.9K) 2 weeks ago 82
5 Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns Gutenberg Essential Blocks Gutenberg block editor with AI. 70+ Gutenberg blocks, patterns, WooCommerce blocks, post… by WPDeveloper 100K+ ★★★★★★★★★★ 4.9 (217) 1 day ago 94
6 Spectra Blocks – AI Website Builder for the Block Editor Spectra Blocks – AI Website Builder for the Block Editor Build a full website with AI, then edit every block natively in Gutenberg. No new editor to… by Brainstorm Force 80K+ ★★★★★★★★★★ 4.6 (56) 19 hours ago 94
7 GutenKit – Page Builder Blocks, Patterns, and Templates for Gutenberg Block Editor GutenKit GutenKit – Ultimate no-code Gutenberg blocks to design stunning web pages and visually… by Ataur R 70K+ ★★★★★★★★★★ 4.5 (48) 16 hours ago 93
8 Better Font Awesome Better Font Awesome Add Font Awesome Free icons that stay current automatically, with a native WordPress block… by Mickey Kay 60K+ ★★★★★★★★★★ 4.5 (88) 3 months ago 89
9 Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor Create Better Content With The Block Editor. Custom Blocks for Bloggers and Content… by Ultimate Blocks 50K+ ★★★★★★★★★★ 4.9 (729) 1 week ago 95
10 Twentig Supercharged Block Editor – Blocks, Patterns, Starter Sites, Portfolio Twentig Supercharged Block Editor Supercharge the WordPress block editor with enhanced core blocks, hundreds of block… by Twentig 20K+ ★★★★★★★★★★ 4.9 (172) 2 months ago 90

FAQ

Random Posts for Query Loop Block: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Random Posts for Query Loop Blo… free?

Yes. Random Posts for Query Loop Blo… is free to download and use from the official WordPress.org plugin directory.

Is Random Posts for Query Loop Blo… safe to use in 2026?

Random Posts for Query Loop Blo… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites and was last updated 11 months ago, and scores 39/100 on our health check.

How many websites use Random Posts for Query Loop Blo…?

Random Posts for Query Loop Blo… is active on 30+ WordPress websites and has been downloaded 586 times since it launched in January 2026. It was downloaded 129 times in the last 30 days.

Does Random Posts for Query Loop Blo… work with WordPress 7.1?

Random Posts for Query Loop Blo… is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Random Posts for Query Loop Blo… need?

Random Posts for Query Loop Blo… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Random Posts for Query Loop Blo… last updated?

The latest version, 1.0.5, was released on January 7, 2026 (11 months ago).

Who makes Random Posts for Query Loop Blo…?

Random Posts for Query Loop Blo… is developed and maintained by Abhay Rautela.

What are the best alternatives to Random Posts for Query Loop Blo…?

The most popular alternatives to Random Posts for Query Loop Blo… are Classic Editor (8M+ installs), Advanced Editor Tools (1M+ installs) and Disable Gutenberg (500K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open