[WordPress] 外掛分享: CatBranchNest

首頁 › 外掛目錄 › CatBranchNest
全新外掛
安裝啟用
—
尚無評分
2 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v0.1.0 上架:2026-10-14

內容簡介

Category Nested Branches 外掛提供一個原生的 WP_Widget,用於顯示分類樹。用戶可以在經典小工具側邊欄或透過 Legacy Widget 區塊使用,並可自訂顯示選項。

【主要功能】
• 自訂標題與顯示深度
• 顯示內容計數與子類別計數
• 排除特定分類及其後代
• 支援多語言翻譯
• 無需 JavaScript 或自訂 SQL

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CatBranchNest」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon