[WordPress] 外掛分享: Query Loop Exclude Current Post

首頁 › 外掛目錄 › Query Loop Exclude Current Post
WordPress 外掛 Query Loop Exclude Current Post 的封面圖片
全新外掛
安裝啟用
—
尚無評分
12 天前
最後更新
—
問題解決
WordPress 5.8.3+ PHP 5.6+ v0.0.8 上架:2026-11-17

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Query Loop Exclude Current Post」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A “You might also like” section at the bottom of a post usually pulls from the same category as the post itself, which means the post someone is already reading often shows up in its own related list.
This plugin adds a single toggle to the Query Loop block called Exclude Current Post. Switch it on and that loop leaves out whichever post is being viewed, so the list always shows something else.
How it works

Select a Query Loop block, open the block settings sidebar, and turn on Exclude Current Post.
The setting belongs to that one block, so you can have several Query Loops on the same page with the toggle on for some and off for others.
The post is removed before the posts-per-page limit is applied, so a loop set to show three posts still shows three, not two.
It works on the front end and in the editor preview, so what you see while building the page matches what visitors get.

No settings page
There is nothing to configure. The plugin adds the one toggle to the Query Loop block and does nothing else.
Works alongside post selection plugins
If another plugin has already narrowed a loop down to a hand-picked set of posts, the current post is removed from that set rather than being ignored.
External services
This plugin bundles the Small Plugins SDK, which adds a Small Plugins screen to your WordPress admin listing our other plugins.
When an administrator opens that screen, the SDK requests the plugin list from smallplugins.com:

Endpoint: https://smallplugins.com/wp-json/small-plugins/v1/plugins
When: only while the Small Plugins admin screen is being viewed. The response is cached, so the request is not repeated on every page load.
What is sent: no personal data and no site content. The request carries the SDK version and your site’s home URL in the User-Agent header.
What is received: the list of Small Plugins products shown on that screen.

No request is made from the front end of your site, and excluding the current post from a Query Loop works whether or not this request succeeds.
This service is provided by Small Plugins. Terms and conditions: https://www.smallplugins.com/legal/terms-and-conditions/ Privacy policy: https://www.smallplugins.com/legal/privacy-policy/

延伸相關外掛

文章
Filter
Mastodon