WP Views Counter

描述

WP Views Counter is a lightweight, high-performance plugin that accurately tracks and displays post, page, and custom post type views — directly in the WordPress admin, via shortcode, or with a Gutenberg block.

Built for bloggers, marketers, store owners, and developers, it works seamlessly across all post types — including WooCommerce and Easy Digital Downloads — with minimal impact on your site’s speed. No external scripts. No unnecessary bloat.

This plugin does one job and does it exceptionally well: it tells you which content is getting the most attention.

Key Benefits

Accurate view counts in admin columns, shortcode, or block
Metabox per post with real-time views and reset button
Exclude views from logged-in users or specific roles
Fully AJAX-powered — no page reloads or slowdowns
Works with all post types, including EDD and WooCommerce
Block to display popular posts — no legacy widgets required
Developer-friendly and fully translatable
Import views from other plugins

Whether you’re optimizing your content strategy or simply want to know what’s working, WP Views Counter is the simple and effective alternative to bloated analytics plugins.

📦 Start tracking your most popular content today — with clarity, speed and control.

💡 Developer-friendly: Contribute on GitHub — forks and pull requests welcome.

屏幕截图

  • Admin settings page.
  • Views displayed in post list.
  • Widget showing popular posts by views.

区块

该插件提供了 1 个区块.

  • Most Popular A dynamic block showing the most popular posts.

安装

  1. Upload the plugin to /wp-content/plugins/ and unzip it.
  2. Activate via the Plugins menu in WordPress.
  3. Configure settings under Settings WP Views Counter.
  4. Use [WPeCounter] in content or widgets to display views.

常见问题

Can I upgrade from an older version without losing data?

Yes. Version 2.0+ automatically imports your previous data and settings. You can also manually import custom view fields. Always make a backup first.

评价

2025 年 12 月 5 日
Only free Plugin that does the trick without slowing down the site. NO unnecessary bloat! Thanks alot.
2025 年 11 月 29 日 1 回复
I tested the view counter plugin on a test site running behind Cloudflare, and it is truly well-built and lightweight. Thanks to the developer for the excellent work. It was the only plugin that worked correctly even with Cloudflare’s cache fully enabled. Fantastic job, really well done!
阅读所有5条评价

贡献者及开发者

「WP Views Counter」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「WP Views Counter」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

2.1.2 – Nov 19, 2025

  • Add security to reset function

2.1.1 – Sep 25, 2025

  • Fixed PHP Warnings displayed in DEBUG mode for Undefined array keys of non-public post-types.

2.1 – Jun 13, 2025

  • Added a post metabox showing view count with a “Reset” button per post.(Deprecated Legacy Widget will be deleted on future release.)
  • Introduced a Gutenberg block to replace the legacy popular posts widget.
  • New option to choose the Views column position in each post type list.
  • Added feature to exclude logged-in users (or by role) from the view count.
  • New tools to reset all view counters or by post type.

2.0.4 – Jun 4, 2025

  • Improved output sanitization and escaping for enhanced security.
  • Fixed minor issues reported in compatibility scans.
  • General code quality and performance improvements.
  • Fully compatible with WordPress 6.8.

2.0.3 – Apr 22, 2025

  • Fixed incorrect posts order when clicking on the Views column header.
  • Fixed a fatal error occurring during plugin uninstallation.
  • Bump to WP 6.8

2.0.2 – Jun 01, 2024

  • Bump to WP 6.5.4
  • Fixes on loading language files.

2.0.1

  • Added Danger Zone in Settings allowing to fix failed imports, duplicated metafields and empty fields processes.
  • Improved column order query in all post types lists.
  • Fixes the import process that if it uses same Views metafield the duplicate the metafields in each post.
  • Updated POT and Spanish language files.

2.0

  • New name: WP Views Counter — better reflects its functionality.
  • Rewritten from scratch — faster, more robust, more extensible.
  • New Legacy Widget with list of most visited posts.
  • Fixes frontend-only view counting behavior.
  • Updated language files and tested with WordPress 6.0.2.

1.2

  • Added compatibility with Easy Digital Downloads.
  • Fixes for other Custom Post Types.
  • Adjusted Views column position.

1.1.2

  • Fixed PHP warnings and strict standard issues (5.4+).
  • Improved compatibility.

1.1.1

  • Fixed “Call to undefined function get_plugin_data()” error.
  • Updated translations.

1.1

  • New: “Order by Visits” on admin post list.
  • Views column position changed next to Comments column.
  • Meta-field importer for other counter plugins.
  • Added Serbo-Croatian translation.

1.0

Initial Release.