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

Accordion Categories

描述

Accordion Categories allows you to show categories menu in a sidebar. Every instance of the widget can be configured according to your needs.
This widget helps visitors of your site to navigate through categories easily. Auto overflow style generation is supported.

Main Features

The major features of Accordion Categories include:

  • Display categories hierarchically.
  • Show/hide empty categories (without any post).
  • Show/hide a category post count (number of post associated with a category) including all children categories
  • Show categories icons (using filter)
  • Auto overflow padding, used for creating styles dynamically in order to prevent text overflow

Contribution

You can find the plugin source code on github Accordion Categories

屏幕截图

  • Widget appearance.
  • Widget configuration.
  • Show empty categories.
  • Autoverflow padding.
  • With category icons.

安装

  1. Upload the entire accordion-categories folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use Accordion Categories Menu widget in any registered sidebar Appearance->Widgets

Note

If you are interested of using category icons then refer to the FAQ section.

常见问题

Why doesn’t the feature XX work ?

If you have found a bug, or the plugin doesn’t work correctly, please feel free to contact me.
I will do my best to fix an issue.

How to use category icons ?

If you need to have an icon associated with a category I’d suggest you to add a custom category field.
I have provided an example of adding a custom category field. You can find it in the example/category-icon folder.
Or you can use your own implementation. The plugin provides a specific filter for that purpose.
The name of the filter to hook – accordion_category_icon.

评价

2017 年 3 月 22 日 1 回复
That is the widget I was looking for a long time. Works really good in a sidebar. Auto overflow function is great as well.
阅读所有1条评价

贡献者及开发者

“Accordion Categories” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Accordion Categories”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.1.2

  • Release Date – 25 March 2017 *
  • Fix the margin style bug caused by the default css file

0.1.0

  • Release Date – 19 March 2017 *
  • Initial plugin release