內容簡介
Category Nested Branches 外掛提供一個原生的 WP_Widget,用於顯示分類樹。用戶可以在經典小工具側邊欄或透過 Legacy Widget 區塊使用,並可自訂顯示選項。
【主要功能】
• 自訂標題與顯示深度
• 顯示內容計數與子類別計數
• 排除特定分類及其後代
• 支援多語言翻譯
• 無需 JavaScript 或自訂 SQL
外掛標籤
開發者團隊
原文外掛簡介
Category Nested Branches provides a native WP_Widget for category trees. Use it in classic widget sidebars or through the Legacy Widget block.
Configure the title, depth, content counts, descendant counts, empty-category visibility, sorting and excluded category IDs. Depth 0 shows all levels; 1 shows roots; 2 shows roots and children.
Rendering uses wp_list_categories(), canonical WordPress category links and native cat-item, current-cat, current-cat-parent and children classes. Sidebar wrappers come from the theme.
Counts follow native WordPress taxonomy rules for published content. Descendant counts include deeper levels even when those levels are hidden by the display depth. Each eligible content item is counted once per parent. Sorting by count uses direct category counts, not padded totals. Exclusions omit a category and its descendants; they do not change stored categories or relationships.
No JavaScript, theme dependency, custom SQL, telemetry, remote requests or generated content. Only normal widget settings are saved. Theme styles control the appearance.
All interface strings are translatable with the catbranchnest text domain.
