Title: Contextual Category Widget
Author: Vinnie
Published: <strong>2019 年 9 月 6 日</strong>
Last modified: 2026 年 7 月 28 日

---

搜尋外掛

![](https://s.w.org/plugins/geopattern-icon/contextual-category-widget.svg)

# Contextual Category Widget

 由 [Vinnie](https://profiles.wordpress.org/nemovrusso/) 開發

[下載](https://downloads.wordpress.org/plugin/contextual-category-widget.0.7.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/contextual-category-widget/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/contextual-category-widget/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/contextual-category-widget/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/contextual-category-widget/#developers)

 [技術支援](https://wordpress.org/support/plugin/contextual-category-widget/)

## 外掛說明

Contextual Category Widget displays the name and description of the first category
assigned to the post currently being viewed.

The widget remains hidden on archives, pages, and posts whose first category has
no description. Its output uses the surrounding widget markup supplied by the active
theme.

## 安裝方式

 1. Install and activate Contextual Category Widget.
 2. Add the widget to a widget area in Appearance > Widgets.
 3. Add descriptions to the categories you want the widget to display.

## 常見問題集

### What happens when a post has multiple categories?

The widget displays the first category returned by WordPress for that post.

### Can I choose a category in the widget settings?

No. The widget is intentionally contextual and uses the category assigned to the
current post.

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈Contextual Category Widget〉的開發相關工作。

參與者

 *   [ Vinnie ](https://profiles.wordpress.org/nemovrusso/)

[將〈Contextual Category Widget〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/contextual-category-widget)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/contextual-category-widget/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/contextual-category-widget/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/contextual-category-widget/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/contextual-category-widget/)。

## 變更記錄

#### 0.7.0

 * Add compatibility metadata for current WordPress and PHP versions.
 * Escape and sanitize dynamic widget output.
 * Make the widget name and description translatable.
 * Preserve theme widget wrappers and existing widget registrations.

#### 0.6.1

 * Fix formatting.

#### 0.6

 * Do not display the widget when there is no description for the article’s first
   category.

#### 0.5.1

 * Fix div wrapping.

#### 0.5

 * Wrap output in a div with class `textwidget`.

#### 0.4

 * Fix version.

#### 0.3

 * Fix readme.

#### 0.2

 * Rename main file.

#### 0.1

 * First release.

## 中繼資料

 *  版本 **0.7.0**
 *  最後更新 **1 個月前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/contextual-category-widget/)
 * 標籤:
 * [category](https://tw.wordpress.org/plugins/tags/category/)[taxonomy](https://tw.wordpress.org/plugins/tags/taxonomy/)
   [widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/contextual-category-widget/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/contextual-category-widget/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/contextual-category-widget/reviews/)

## 參與者

 *   [ Vinnie ](https://profiles.wordpress.org/nemovrusso/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/contextual-category-widget/)