跳到内容

Query Loop Exclude Posts

v1.1.0

ColinD · 2024年12月20日 上架

Extends the Query Loop Block to allow excluding specific posts.

正在使用
100+
评分
5.0 / 5
累计下载
2,023
最近更新
2025年1月21日
1 条评价需要 WordPress 6.6+已测试到 6.7.12PHP 8.0+

贡献者

截图

The controls are added to the query loop block's settings sidebar.
The controls are added to the query loop block's settings sidebar.

Extends the Query Loop Block to allow excluding specific posts.

  1. Provides controls in the Query Loop Block Select specific posts by title.
  2. Provides a toggle to exclude the current post.

Works with whichever post type is set for the query loop Block (Post, Page, etc)

“Exclude Current Post” is helpful for “related posts” patterns often used on a single
post template. Using this option on the query loop block will let it pull in posts but
not the single post currently being viewed.

Development and Support

wp
This plugin is developed on Github. You can find the uncompressed source javascript and
submit issues and pull requests there:
https://github.com/colinduwe/exclude-posts

If you’ve checked out the full source code either from my repo or your own fork you’ll
want to do the following in your terminal:
1. Navigate within this plugin’s directory.
2. Install the development dependencies by running ‘npm install’
3. Work on the plugin code by running ‘npm start’
4. Complete your work by building for production by running ‘npm run build’

Plums

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

导航

说明

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

© 2026 Plums