Linux 软件免费装
Banner图

Statify Widget

开发者 bitnulleins
更新时间 2026年10月12日 04:24
PHP版本: 5.2.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

widget privacy statistics analytics popular posts

下载

1.4.6 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.4.8 1.3.7 1.3.8 1.3.9 1.4.0 1.4.2 1.4.3 1.3.2 1.4.5 1.1 1.1.9 1.0 1.2.9 1.3.3 1.4.4 1.4.7 1.1.1 1.2.8 1.3.0 1.3.1 1.3.6 1.4.1

详情介绍:

The Statify Widget shows the most popular content from the Statify plugin, which collects statistics in compliance with data protection regulations. 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. Features Shortcode 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"] Parameter: Result: A total of 243 views. Widget Settings The following settings can be made in the widget: Support 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! Author

安装:

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

屏幕截图:

  • Statify Widget Settings

升级注意事项:

No Upgrades

常见问题:

Error: The widget does not find any entries

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

Can I change the default cache expiry time?

Yes! Since 1.4.1 you can add the following filter to change the default 4 minute cache (60 * 4) to another value in seconds: add_filter( 'statify_targets_cache_expiry', fn() => 60*4 ); If you do not set a numerical value greater than zero (>0), the standard cache expiry time is automatically used.

I set the cache too high (remove cache)

If you deactivate the plugin, all existing cache will be delete. After that you can activate Statify Widget again. Everything continues to work as usual.

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: Properties:

  • days = Amount of days
  • prefix= Text before the view count
  • suffix= Text after the view count
Shortcode: [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 ' '. get_the_post_thumbnail($post->ID, 'thumb') .''; } add_action('statify_widget_before_link', 'statify_custom_template'); `

ADVANCED: Return all posts as WP Query

For example put this in your theme: ` have_posts() ) { $ wp_query->the_post(); } } ?> ` Properties

  • $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

更新日志:

1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.9 1.3.8 1.3.7 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.9. 1.2.8 1.2.7 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1 1.0