Display Site Numbers

Beschrijving

Widget

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.

Shortcode

Add this shortcode in your page/post:

[DSN-list]

to show all available 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, Types.

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

Schermafbeeldingen

Installatie

  1. Upload display-site-numbers folder to the /wp-content/plugins/ directory
  2. Activeer de plugin via het ‘Plugins’ menu in WordPress
  3. Place the widget

FAQ

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

Beoordelingen

30 december 2018 1 reactie
This was perfect. Well coded and easy to adapt for custom post types.
3 september 2016 1 reactie
Funziona che è una meraviglia… e tanto basta!
Lees alle 2 beoordelingen

Bijdragers & ontwikkelaars

“Display Site Numbers” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Display Site Numbers” is vertaald in 2 localen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Display Site Numbers” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.2.1

  • Fixed widget checkbox selections so they control displayed counters.
  • Improved compatibility with legacy and incomplete widget instances.
  • Hardened runtime behavior for PHP 8 and improved counter error handling.
  • Improved shortcode option validation and ensured shortcode CSS loads when needed.
  • Added object caching for the attachment count and corrected widget admin markup.

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