
內容簡介
Portfolio Loop Filter 是一款為 WordPress 區塊編輯器設計的動態區塊外掛,能夠根據選定的分類法創建過濾按鈕,並過濾下方的查詢循環區塊,適合用於區塊主題和作品集網格。
【主要功能】
• 動態 Gutenberg 區塊
• 根據選定的文章類型顯示分類法下拉選單
• 自動生成過濾按鈕
• 支援手動排序過濾按鈕
• 可選擇顯示「全部」按鈕
• 按鈕對齊方式可調整
外掛標籤
開發者團隊
原文外掛簡介
Portfolio Loop Filter adds a dynamic block for the WordPress block editor. The block creates filter buttons from the used terms of a selected taxonomy and filters the next Query Loop block below it.
The plugin is designed for block themes and portfolio grids that already use the native WordPress Query Loop block. It does not replace the Query Loop, does not register custom post types, and does not use AJAX on the frontend. The frontend script only toggles the visibility of Query Loop items that are already rendered on the page.
Typical use cases:
Filter a portfolio Query Loop by project categories.
Filter posts by categories or tags.
Place multiple independent filter and Query Loop pairs on the same page.
Keep content management inside WordPress core blocks while adding lightweight frontend filtering.
Features:
Dynamic Gutenberg block.
Post type dropdown in the block settings.
Taxonomy dropdown based on the selected post type.
Automatic filter buttons from used taxonomy terms.
Filter button ordering: alphabetical A-Z, alphabetical Z-A or manual.
Manual ordering controls directly in the block sidebar.
Newly added terms are appended automatically when manual ordering is used.
Filters only the next Query Loop below the filter block.
Optional “All” button, which remains first regardless of term ordering.
Button alignment: left, center or right.
Color controls for text, active text, border, background, active background and hover/focus border.
Fallback styles when no custom colors are selected.
