
內容簡介
總結:這個外掛在 WordPress 中新增了一個可放入 Query Loop 區塊的功能,讓訪客可以按分類條件(如分類或標籤)篩選文章。適用於建立互動式文章列表和存檔。
問題與答案:
1. 這個外掛的功能是什麼?
- 它新增了一個區塊,可以在 Query Loop 區塊中使用,讓訪客可以按照分類條件(如分類或標籤)來篩選文章。
2. 這個外掛對於建立什麼種類的內容很有用?
- 它對於建立互動式文章列表和存檔非常有用。
3. 是否可以找到這個外掛的原始碼?
- 是的,這個外掛的原始碼可以在以下連結找到:https://github.com/Twenty-Bellows/taxonomy-query-filter
4. 需要哪些工具才能安裝和運行這個外掛的開發工具?
- 必須要有 Node 和 NPM,可以使用以下指令進行安裝和建置:
```
npm install
npm run build
```
外掛標籤
開發者團隊
原文外掛簡介
Make your WordPress site more interactive by adding taxonomy filters to Query Loop blocks. This plugin provides a simple block that lets visitors filter posts by categories, tags, or any custom taxonomy—perfect for Full Site Editing (FSE) themes.
Key Features:
Works with Any Taxonomy – Filter by categories, tags, or custom taxonomies
Full Site Editing Ready – Built specifically for FSE and block-based themes
Preserves Query Settings – Maintains pagination and other Query Loop configurations
Flexible Filtering – Works with AJAX or page reload depending on your Query Loop settings
Easy to Style – Standard markup and CSS classes for custom styling
Dropdown Enhancer Compatible – Works seamlessly with dropdown enhancement libraries like Select2
Perfect For:
Recipe sites (filter recipes by cuisine, dietary type, or cooking method)
Portfolio websites (filter artists by specialty or medium)
Restaurant menus (filter menu items by category or dietary options)
Product catalogs (filter by product type or category)
News archives (filter articles by topic or tag)
Any custom post type with taxonomies
How It Works:
Simply insert the Taxonomy Query Filter block inside any Query Loop block, select your taxonomy, and visitors can instantly filter the displayed posts. The plugin updates the URL with query parameters, making filtered views shareable and bookmark-friendly.
Open Source:
This plugin is open source and actively maintained on GitHub. Contributions welcome!
