跳到内容

Duplicate Post Exclusion for Query Loop Block

v1.0.2

Itamar Silva · 2026年7月6日 上架

Prevent duplicate posts across multiple Query Loop blocks on the same page — automatic deduplication, no extra queries.

正在使用
10 以下
评分
暂无
累计下载
410
最近更新
2026年7月17日
需要 WordPress 6.7+已测试到 7.0.9PHP 7.4+

贡献者

截图

The "Make posts unique on page" toggle in the Query Loop block sidebar.
The "Make posts unique on page" toggle in the Query Loop block sidebar.

Duplicate Post Exclusion for Query Loop Block adds a toggle to the native core/query (Query Loop) block so posts already shown by another Query Loop on the same page are not displayed again.

This is automatic deduplication for the block editor: when you place several Query Loops on one page (for example a featured list above a recent-posts list), each enabled loop skips the posts already rendered above it, keeping every post unique on the page.

How it works

  1. Edit a Query Loop block in the block editor.
  2. In the sidebar, enable Make posts unique on page.
  3. Enable the same option on any other Query Loops that should respect prior results.
  4. On the front end, each enabled loop excludes post IDs already rendered by previous enabled loops.

Features

  • Extends the core Query Loop block — no custom block or variation required.
  • Uses official hooks: query_loop_block_query_vars and render_block.
  • No extra database queries; only adjusts existing query arguments.
  • Per-request in-memory registry (no transients or options).
  • Compatible with Query Loop variations such as Advanced Query Loop.

Requirements

  • WordPress 6.7 or later
  • PHP 7.4 or later

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums