RIACO Taxonomy Filter Block

外掛說明

Inline Taxonomy Filters for Query Loop lets you display taxonomy terms (such as categories, tags, or custom taxonomies) as clickable inline filters for the WordPress Query Loop block.

Features

This allows visitors to dynamically filter posts on the front-end without reloading the entire page — creating a smooth, modern browsing experience.

Perfect for blogs, portfolios, directories, and any site that uses Query Loop blocks to list posts or custom post types.

  • Display taxonomy terms (categories, tags, or custom taxonomies) as inline filters.
  • Works seamlessly with the Query Loop block.
  • Uses the new WordPress Interactivity API for smooth, dynamic filtering.
  • Supports multiple taxonomies.
  • Respects pagination and URL parameters.

Use Cases

  • Filter blog posts by category.
  • Filter products or portfolio items by taxonomy.
  • Create dynamic, AJAX-like query filters without writing custom JS.

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • RIACO Taxonomy Filter Block Display taxonomy terms as inline filters, enabling users to filter posts dynamically by category, tag, or custom taxonomy.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/riaco-taxonomy-filter-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Add a Query Loop block to your post or page.
  4. Insert the Taxonomy Filter block inside your Query Loop.
  5. Select the taxonomy (e.g. category, tag) you want to use as a filter.
  6. Preview and enjoy dynamic inline filtering!

Does this work with custom taxonomies?

Yes! You can choose any registered taxonomy, including custom ones.

Does it reload the page when filtering?

No. It uses the WordPress Interactivity API and @wordpress/interactivity-router for smooth, dynamic updates.

Can I style the filters?

Yes. The filters output simple HTML markup you can style with CSS or theme classes.

Is JavaScript required?

Yes, but the script is lightweight and only loads where the block appears.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈RIACO Taxonomy Filter Block〉的開發相關工作。

參與者

將〈RIACO Taxonomy Filter Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Release
  • Added inline taxonomy filters for Query Loop block.
  • Implemented Interactivity API integration for dynamic navigation.