Display Site Numbers

描述

小工具

The widget will show (and automatically update) the following site-content counters:

  • Categories count
  • Posts count
  • Pages count
  • Images count
  • Tags count
  • Comments count
  • Authors count

In the admin backend, user can select what counter(s) to display.

代码

Add this shortcode in your page/post:

[DSN-list]

to show all the 6 counters. If you want to specify what counter(s) to show, use this syntax;

[DSN-list show="Categories, Comments, Posts]

Valid terms in the list are: Categories, Comments, Posts, Pages, Authors, Images, Tags.

If you like the plugin, feel free to rate it (on the right side of this page) or donate via PayPal. Thanks a lot! 🙂

屏幕截图

  • The admin backend
  • The widget frontend
  • Another view of the frontend, with a different style
  • A view of the shortcode output in a post/page.

安装

  1. Upload display-site-numbers folder to the /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Place the widget

常见问题

Can I customize the style in the widget?

Yes, all elements are included in DSN-wrapper div. Left items are in the item class, while counters are in count class. You can override them in your child theme style.css

评价

2018 年 12 月 30 日 1 回复
This was perfect. Well coded and easy to adapt for custom post types.
2016 年 9 月 3 日 1 回复
Funziona che è una meraviglia... e tanto basta!
阅读所有2条评价

贡献者及开发者

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

贡献者

「Display Site Numbers」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Display Site Numbers”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0

  • Adding support for custom post types

1.0

  • Implementing Selective Refresh Support

0.9

  • Ensuring compatibility with WP 4.3
  • Removed deprecated php4 code
  • Ready for php7

0.8

  • Added Norwegian localization

0.7

  • Added pages count

0.6

  • Added shortcode

0.5

  • First working version