Title: Random Posts for Query Loop Block
Author: Abhay Rautela
Published: <strong>2026년 1월 7일</strong>
Last modified: 2026년 1월 7일

---

플러그인 검색

![](https://ps.w.org/random-posts-for-query-loop-block/assets/icon-256x256.png?rev
=3434605)

# Random Posts for Query Loop Block

 작성자: [Abhay Rautela](https://profiles.wordpress.org/ctrs/)

[다운로드](https://downloads.wordpress.org/plugin/random-posts-for-query-loop-block.1.0.5.zip)

 * [세부사항](https://ko.wordpress.org/plugins/random-posts-for-query-loop-block/#description)
 * [평가](https://ko.wordpress.org/plugins/random-posts-for-query-loop-block/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/random-posts-for-query-loop-block/#installation)
 * [개발](https://ko.wordpress.org/plugins/random-posts-for-query-loop-block/#developers)

 [지원](https://wordpress.org/support/plugin/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`.

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"`.

## 스크린샷

[⌊Query Loop block configured with "orderBy": "rand" in the Code Editor.⌉⌊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.⌉[

Site Editor preview working correctly with random post ordering enabled.

## 설치

 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:
 6. “orderBy”: “rand”

## FAQ

### Will this add a “Random” option to the Query Loop sidebar?

No. The dropdown list is defined in Gutenberg’s JavaScript and cannot be modified
by PHP alone.
 You must edit the block’s attributes in **Code Editor**.

### Does this affect frontend queries outside the block editor?

No. It only extends the REST API schema used by the editor.
 WP_Query has natively
supported `orderby = 'rand'` for many years.

### Does this slow down my website?

No extra load is added beyond core WordPress behavior.
 However, `orderby = rand`
can be heavy for very large datasets — this is true with or without this plugin.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Random Posts for Query Loop Block”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이
이 플러그인에 기여하였습니다.

기여자

 *   [ Abhay Rautela ](https://profiles.wordpress.org/ctrs/)

[자국어로 “Random Posts for Query Loop Block”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/random-posts-for-query-loop-block)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/random-posts-for-query-loop-block/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/random-posts-for-query-loop-block/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/random-posts-for-query-loop-block/)
을 [RSS](https://plugins.trac.wordpress.org/log/random-posts-for-query-loop-block/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.0.5

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

## 기초

 *  버전 **1.0.5**
 *  최근 업데이트: **8개월 전**
 *  활성화된 설치 **20+**
 *  워드프레스 버전 ** 6.0 또는 그 이상 **
 *  다음까지 시험됨: **6.9.7**
 *  PHP 버전 ** 7.4 또는 그 이상 **
 *  언어
 * [English (US)](https://wordpress.org/plugins/random-posts-for-query-loop-block/)
 * 태그:
 * [block-editor](https://ko.wordpress.org/plugins/tags/block-editor/)[gutenberg](https://ko.wordpress.org/plugins/tags/gutenberg/)
   [orderby](https://ko.wordpress.org/plugins/tags/orderby/)[query loop](https://ko.wordpress.org/plugins/tags/query-loop/)
   [random](https://ko.wordpress.org/plugins/tags/random/)
 *  [고급 보기](https://ko.wordpress.org/plugins/random-posts-for-query-loop-block/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/random-posts-for-query-loop-block/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/random-posts-for-query-loop-block/reviews/)

## 기여자

 *   [ Abhay Rautela ](https://profiles.wordpress.org/ctrs/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/random-posts-for-query-loop-block/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](https://ko-fi.com/conetrees)