Title: Category Filter Block
Author: Misha Rudrastyh
Published: <strong>2025 年 4 月 7 日</strong>
Last modified: 2026 年 5 月 30 日

---

搜索插件

![](https://ps.w.org/category-filter-block/assets/icon-256x256.png?rev=3267623)

# Category Filter Block

 作者：[Misha Rudrastyh](https://profiles.wordpress.org/rudrastyh/)

[下载](https://downloads.wordpress.org/plugin/category-filter-block.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/category-filter-block/#description)
 * [评价](https://cn.wordpress.org/plugins/category-filter-block/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/category-filter-block/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/category-filter-block/#developers)

 [支持](https://wordpress.org/support/plugin/category-filter-block/)

## 描述

The category filter block allows you to filter posts displayed with the standard
Query Loop block by category, without a page refresh. The Interactivity API is fully
supported.

#### Features

✅ The category filter can be displayed as links or as a select dropdown field.

✅ You can display a post count number near each category. ✅ Custom **All Categories**
text ✅ Works without page refresh (AJAX + Interactivity API) ✅ Sticky positioning
✅ Block styles customization (Font size, Padding, Margin) ✅ The block can add 
parameters to the page URL, for example, ?filter-category=travel

The plugin also has a PRO version, its main difference is that it supports filtering
by any custom taxonomy – Tags, Product Categories, Product Tags, Brands, etc. It
has a bunch of other features too.

#### Pro features

✅ Custom taxonomies are supported.
 ✅ Multiple taxonomy filters within the same
Query Loop. ✅ Sort categories (terms) in the filter alphabetically, by post count,
or in a custom order. ✅ The filter can be displayed as buttons with the possibility
of style customization (color, background color, border, border radius, etc).

🚀 [Upgrade to Pro](https://rudrastyh.com/plugins/taxonomy-filter-block)

## 屏幕截图

[⌊Category Filter block in the Inserter⌉⌊Category Filter block in the Inserter⌉[

Category Filter block in the Inserter

[⌊Category Filter block settings⌉⌊Category Filter block settings⌉[

Category Filter block settings

## 区块

该插件提供了 1 个区块.

 *   Category Filter Displays a simple AJAX-powered category filter.

## 安装

#### Automatic Install

 1. Log into your WordPress dashboard and go to Plugins → Add New
 2. Search for “Category Filter Block”
 3. Click “Install Now” under the “Category Filter Block” plugin
 4. Click “Activate Now”

#### Manual Install

 1. Download the plugin from the download button on this page
 2. Unzip the file, and upload the resulting `category-filter-block` folder to your`/
    wp-content/plugins` directory
 3. Log into your WordPress dashboard and go to Plugins
 4. Click “Activate” under the “Category Filter Block” plugin

## 常见问题

### Is it tested with the latest PHP version?

Yes, it is.

### Will it work if the “Reload full page” option is active for my “Query Loop” block?

Yes, the plugin supports both AJAX and non-AJAX query loops.

## 评价

![](https://secure.gravatar.com/avatar/334727b514d9e0490b3cb9490f7d31d70a76faadce4258f067426c6fd206c66a?
s=60&d=retro&r=g)

### 󠀁[Tried the plugin and it seems very nice!](https://wordpress.org/support/topic/tried-the-plugin-and-it-seems-very-nice/)󠁿

 [romanburtnek](https://profiles.wordpress.org/romanburtnek/) 2025 年 4 月 7 日

Tried the plugin and really enjoyed it. It doesn’t overload the interface with shiny
icons or notifications with suggestions to upgrade to a pro version. Plus, it works
as it should.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/category-filter-block/reviews/)

## 贡献者及开发者

「Category Filter Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Misha Rudrastyh ](https://profiles.wordpress.org/rudrastyh/)

[帮助将「Category Filter Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/category-filter-block)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/category-filter-block/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/category-filter-block/)，或通过[RSS](https://plugins.trac.wordpress.org/log/category-filter-block/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/category-filter-block/)。

## 更新日志

#### 1.2

 * Fixed: An issue with the link-type filter styles in the Block Editor in WordPress
   7.0

#### 1.1

 * Fixed: Deprecation notices in the browser console (Block API version, __nextHasNoMarginBottom,
   and __next40pxDefaultSize)
 * Minor UI improvements

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**2 周前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/category-filter-block/)
 * 标签
 * [category filter](https://cn.wordpress.org/plugins/tags/category-filter/)[filter](https://cn.wordpress.org/plugins/tags/filter/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[post filter](https://cn.wordpress.org/plugins/tags/post-filter/)
   [taxonomy filter](https://cn.wordpress.org/plugins/tags/taxonomy-filter/)
 *  [高级视图](https://cn.wordpress.org/plugins/category-filter-block/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/category-filter-block/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/category-filter-block/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/category-filter-block/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/category-filter-block/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/category-filter-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/category-filter-block/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/category-filter-block/reviews/)

## 贡献者

 *   [ Misha Rudrastyh ](https://profiles.wordpress.org/rudrastyh/)

## 支持

最近两个月解决的问题：

     总计 2，已解决 2

 [查看支持论坛](https://wordpress.org/support/plugin/category-filter-block/)