外掛說明
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.
安裝方式
- Install and activate Contextual Category Widget.
- Add the widget to a widget area in Appearance > Widgets.
- 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.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
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.