This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Statify Widget


The Statify Widget shows the most popular content from Statify plugin made by pluginkollektiv. Fast and clear!

What is Statify?

Statify is a plugin for visitor statistics with emphasis on privacy, transparency and clarity.

Note: This widget only works with the main plugin Statify.


  • Popular Posts: Sum up all view from Statify and put it together in a widget
  • Shortcodes: The counter for each post/page can be put everywhere
  • Custom Post Types: Statify Widget supports custom post types, that can be displayed
  • Intelligent summary: Once there are different paths to a content, the widget adds them together
  • Period Selectable: It is possible to choose an individual daily period for the post popular content
  • New: Custom Widget Template: Now, you can add individual post/page paramater to widget template (see FAQ)


The shortcode [statify-count] can be used to display calls to the current post or page. With the options «prefix» and «suffix» displayed texts can be checked before (prefix) and after (suffix) the calls:

[statify-count prefix="Total " suffix=" calls." days="8"]


  • prefix Sentence before views
  • suffix Sentence after views
  • days Inteval for view statistics

Result: A total of 243 views.

Widget Settings

The following settings can be made in the widget:

  • Title
  • Content Type (Default: post )
  • Category (when content type post is select)
  • Amount of entries (default: 5)
  • Show views (default: No)
  • Custom text (Replace variable for views: %VIEWS%)
  • Number of past days (0 days = all statistics)


Friendly questions about the widget I like to answer under Support.

If you like my work and want to support me, feel free to rate this plugin!



  • Statify Widget Result
  • Statify Widget Settings


  1. Install the «Statify» by pluginkollektiv.
  2. Install this Plugin «Statify Widget» and activate it.
  3. Activate the Popular Post Widget under widgets.


Error: The widget does not find any entries

Statify has not added statistics yet. Wait some days to collect some statistics by Statify.

Show pages and posts together

Yes! Since 1.1.4 that works.

Just in the content type widget: select Pages and posts. He then displays the default content types «post» and «page» together.

Show views in pages and posts

This is possible with shortcodes. Specifying a prefix and suffix is ​​not mandatory:


  • days = Amount of days
  • prefix= Text before the view count
  • suffix= Text after the view count


[statify-count prefix ="Total" suffix ="calls." days="8"]

The total view counter for the whole webpage:

[statify-count-sum prefix="Total" suffix="calls."]

I do not have static page as homepage

No problem. A pseudo «Frontpage» (with views) entry appears.

I changed the permalink structure

This changes nothing. The plugin takes every Statify entry and adds it together.

Change design (CSS)

Just use these CSS classes:
* List: .statify-widget-list {...}
* List item: .statify-widget-element {...}
* List item view counter: .statify-widget-element span {...}
* List item link: .statify-widget-link {...}

Change list from numeric to points

If you want to change the list of contents (1st, 2nd, 3rd, …) to bullets, just add the following to your CSS:

.statify-widget-element {
    list-style-type: circle;

ADVANCED: Change Widget Template

Since 1.3.8 it is possible to customize the Widget Template by adding code to your Template functions.php. You can use the WP Post Object in the template.

There exists two hooks:

  • statify_widget_before_link
  • statify_widget_after_link

For Example add thumbnail before link in a div:

function statify_custom_template($post) {
    echo '<div class="post_thumbnail">'. get_the_post_thumbnail($post->ID, 'thumb') .'</div>';

add_action('statify_widget_before_link', 'statify_custom_template');

ADVANCED: Return all posts as WP Query

For example put this in your theme:

    if(function_exists('statify_popular_posts')) {
        $wp_query = statify_popular_posts(
            $amount = 5,
            $days = 30,
            $post_type = 'post',
            $post_category = 0

        // Make WP Post loop...
        while ( $wp_query->have_posts() ) {
                $ wp_query->the_post();


  • $days = Range of days for statictics (0 = all days)
  • $amount = Amount of posts
  • $post_type = Post type («post», «page», …)
  • $post_category = Category of the post, if post type is choosen


6. Januar 2023
Vielen Dank für das Update! Das kam für mich genau zum richtigen Zeitpunkt, da ich gerade meine Statistik auf Statify umstelle, mir aber bisher bei diesem Plugin die Möglichkeit fehlte, das Featured Image auszugeben. Gerade wollte ich mich als php-Dummy auf die Suche nach einem Code-Schnipsel machen, da finde ich dieses Update… Plugin installiert, Code-Schnipsel eingebaut, eine CSS-Anpassung aus den FAQ übernommen – 5(!) Minuten später war das Widget fertig. Da hat bei anderen Top-Post-Plugins allein die CSS-Anpassung schon deutlich länger gedauert.
3. September 2016
Plugin installiert, Widget eingefügt, CSS angepasst – Fertig. Vielen Dank.
Read all 4 reviews

Contributors & Developers

“Statify Widget” is open source software. The following people have contributed to this plugin.


“Statify Widget” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “Statify Widget” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Hot-Fix: Update problem, that hide any popular post widget content.
  • Remove unnecessary JQuery.


  • Add missing PHP Class File.


  • Feature Request: Add custom template option for widget (See:


  • Fix problem with Widget settings in Elementor (See:


  • New way to return list of popular posts as WP_Query
  • Correct the way how pseudo frontpage is generate


  • Fix for non existing views in «Frontpage» alias


  • Fix bug in [statify-count-sum]. Remove unnecessary post_id.
  • Add shortcode parameter «days» for limit interval days.


  • Bugfix: Hide duplicate frontpage item in widget.


  • Now comtaible with PHP8
  • Fix two bugs occured in PHP8 version.
  • Remove «frontpage» label, now the frontpage list with its original page name


  • Fix bugs


  • Add some description and tested up to WordPress v5.6


  • Fixed bug in backend for category select


  • Fixed ressourcen bug. Add required java script folder.


  • Add feature to filter for post category in widget.


  • Fixed another bug for unpublished posts


  • Translate whole plugin into English.
  • Fixed «show views» translation bug.


  • English and German language
  • Fixed a link bug in the widget
  • Shortcode for total number of views


  • Correction of a translation error.
  • List type setting has been removed.


  • The plugin is now ready for translation.
  • You can now choose between the list type (<ol> or <ul>) per widget.
  • Now the classes statify-widget-list,statify-widget-element and statify-widget-link have been added as class to make a more flexible design possible.


  • List type ordered (<ol>) changed to unordered (<ul>) for higher theme compatibility.
  • Outdated create_function () method swapped.
  • Bug with shotcode usage removed (statify_count edited in Statify_Posts.class.php)


  • The functionality of restricting a time period for the content has been added.
  • Fixed a bug that caused the homepage to ignore when choosing «Posts + Pages».


  • An error has been removed. He had always shown the number of views at the end of a page.


  • Content Type: «Posts and Pages» added to show together
  • Views for article shortcode and theme function


  • Recording the evolution and tested for WordPress 4.7.6


  • Corrections in the validation


  • Custom text for the number of views
  • Unused require_once () removes
  • span element added by the number of views


  • Limitation of records canceled
  • added title attribute to the links


  • Release of the first version