Title: Display Categories Widget
Author: iteamweb
Published: <strong>2012 年 8 月 16 日</strong>
Last modified: 2019 年 11 月 3 日

---

搜索插件

![](https://ps.w.org/display-categories-widget/assets/banner-772x250.jpg?rev=963425)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/display-categories-widget/assets/icon-256x256.png?rev=1788052)

# Display Categories Widget

 作者：[iteamweb](https://profiles.wordpress.org/iteamweb/)

[下载](https://downloads.wordpress.org/plugin/display-categories-widget.zip)

 * [详情](https://cn.wordpress.org/plugins/display-categories-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/display-categories-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/display-categories-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/display-categories-widget/#developers)

 [支持](https://wordpress.org/support/plugin/display-categories-widget/)

## 描述

Display Categories Widget will display Child categories on your sidebar. Can be 
placed on widget in sidebar.

**Development**

Our development is being tracked on [GitHub URL](https://github.com/iteamweb/Display-Categories-Widget).
Please fork, code, raise pull request, suggest improvements on GitHub.

**Features**
 1. Limit number of categories that appears.

 1. Exclude categories from display.
 2. Restrict levels of categories that can be shown.
 3. Display categories as list or dropdown.
 4. Hide categories that does not have any posts.
 5. Display/Hide number of posts available in categories.
 6. Display/Hide category description on hover in title attribute

### 技术支持

#### How to contact plugin support?

We support through https://wordpress.org/support/plugin/display-categories-widget
and http://www.iteamweb.com/open-source-softwares/wordpress/wordpress-plugins/display-
categories-widget/

### Arbitrary section 1

## 屏幕截图

 * [[
 * On the backend widget configuration can be made like this
 * [[
 * This is how the widget will appear on your screen, you can add design to the 
   class
 * [[
 * Display categories with number of posts inside them

## 安装

 1. Upload display-categories-widget folder to the `/wp-content/plugins/` directory
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. Go to widgets page
 4. Drag and drop the widget where ever you need
 5. Choose the parent category to display the child categories in the front end

## 常见问题

  Will the plugin show parent category?

Yes its optional, if you need to make parent category visible you can enable from
the widget

  Is the category sorted?

The sorting order is ascending and it sorts on the name of the category

  Exclude categories does not work?

Check if you have entered the category id’s and not the category names.

  Will this plugin work for PHP version 5.6?

Yes, this plugin will work for PHP5.6 and if you face any parse errors , please 
report in support section forum.

## 评价

![](https://secure.gravatar.com/avatar/903153ec37920862c02428f48d149fad2f620e9c3226f11b10b6c7348918b8b0?
s=60&d=retro&r=g)

### 󠀁[Working & Awesome Support](https://wordpress.org/support/topic/working-awesome-support/)󠁿

 [gamejump](https://profiles.wordpress.org/gamejump/) 2020 年 4 月 17 日

This plugin works the job and the developer support also awesome

![](https://secure.gravatar.com/avatar/7c251f0dd8a048b4893f1354c91421386035459ad3dda27e43f11b9665bd4d2a?
s=60&d=retro&r=g)

### 󠀁[nice work!](https://wordpress.org/support/topic/nice-work-424/)󠁿

 [Pavlos7](https://profiles.wordpress.org/pavlos7/) 2019 年 9 月 11 日

I was looking for such a plugin! So far so good, keep going this work!

![](https://secure.gravatar.com/avatar/63ab2a4bbc5c8f91a817bcb79e81df246ad35406175a4b51615b92dbd5138ad9?
s=60&d=retro&r=g)

### 󠀁[Error unexpected ‘?’](https://wordpress.org/support/topic/error-unexpected-2/)󠁿

 [lalubasto](https://profiles.wordpress.org/lalubasto/) 2019 年 8 月 23 日

Parse error: syntax error, unexpected ‘?’ while trying active the pluggin

![](https://secure.gravatar.com/avatar/9ad8028c0e84e4e321488590012ffcca9662da86a0b25eeb4bbe86f9ec1f63e7?
s=60&d=retro&r=g)

### 󠀁[I want to give five…](https://wordpress.org/support/topic/i-want-to-give-five/)󠁿

 [crzyhrse](https://profiles.wordpress.org/crzyhrse/) 2019 年 7 月 15 日 2 回复

I want to give five stars, this is a great widget for controlling which categories
show, but it hasn’t been update in a year and there hasn’t been much of any response
in support for a lot longer than that.. I am crossing my fingers, hoping the plugin
author might show some interest, check it out, bring it current…? This review can
change…

![](https://secure.gravatar.com/avatar/16a56f1e192c0478043af93c51ff9ad7846c2dee77956886c480f2e3a4eade73?
s=60&d=retro&r=g)

### 󠀁[For the support](https://wordpress.org/support/topic/for-the-support-2/)󠁿

 [anthorfacte2019](https://profiles.wordpress.org/anthorfacte2019/) 2019 年 3 月
20 日

For the support, 2 weeks and 6 days without answer, and because one year without
update. And i am not alone to said this.

![](https://secure.gravatar.com/avatar/94d70dd62e9b56f0b862fa70d81b931be8a97d1a959d4e378230411da923010a?
s=60&d=retro&r=g)

### 󠀁[thank you](https://wordpress.org/support/topic/thank-you-1600/)󠁿

 [weerachart](https://profiles.wordpress.org/weerachart/) 2018 年 4 月 15 日

thank you

 [ 阅读所有25条评价 ](https://wordpress.org/support/plugin/display-categories-widget/reviews/)

## 贡献者及开发者

「Display Categories Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Display Categories Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/display-categories-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/display-categories-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/display-categories-widget/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/display-categories-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/display-categories-widget/)。

## 更新日志

#### 3.1

 * Fixed warning for php 5.6 (Ternary operator updated) – Fixed: PHP Parse error:
   syntax error, unexpected ‘?’

#### 3.0

 * Added default values to not initialized variables to avoid notes poping up in
   wp backend
 * Fixed deprecation warning for php 7.3 (create_function is deprecated)

#### 2.2

 * Enable/disable display of category description
 * Code formatting
 * Removed Deprecated Constructor Method – Thanks https://github.com/frozzare
 * Added sorting option by name, id, post count

#### 2.1.0

 * Ability to use more than 1 widget on same page with different parent categories
 * Code formatting

#### 2.0.2

 * Bug fixes
 * Added a label for dropdown non-selection case

#### 2.0.1

 * Removed deprecated WP_Widget

#### 2.0.0

 * Updated a widget screenshot
 * Level of sub categories to be shown can be managed from widget settings
 * Exclude categories that you dont want to show on the front end

#### 1.0.9

 * Added new screenshots

#### 1.0.8

 * Displaying the list of categories in columnwise (Optional)

#### 1.0.7

 * If nothing is selected then all categories will be displayed. Removal of deprecated
   functions

#### 1.0.6

 * Optional display for Dropdown or List view of categories

#### 1.0.5

 * Display Number of post in each categories

#### 1.0.4

 * Display Empty categories Option

#### 1.0.3

 * Display parent category show/hide option

#### 1.0.2

 * Limit the number of categories that is displayed

#### 1.0.1

 * Description Updated

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **3.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/display-categories-widget/)
 * 标签
 * [categories](https://cn.wordpress.org/plugins/tags/categories/)[hide categories](https://cn.wordpress.org/plugins/tags/hide-categories/)
   [list categories](https://cn.wordpress.org/plugins/tags/list-categories/)[select categories](https://cn.wordpress.org/plugins/tags/select-categories/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/display-categories-widget/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  23 条 5 星评价     ](https://wordpress.org/support/plugin/display-categories-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/display-categories-widget/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/display-categories-widget/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/display-categories-widget/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/display-categories-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/display-categories-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/display-categories-widget/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/display-categories-widget/)