Post Views Counter

Description

Post Views Counter allows you to display how many times a post, page or custom post type had been viewed with this simple, fast and easy to use plugin.

For more information, check out plugin page at dFactory or plugin support forum.

Features include:

  • Option to select post types for which post views will be counted and displayed.
  • 3 methods of collecting post views data: PHP, Javascript or REST API for greater flexibility
  • Possibility to manually set views count for each post
  • Dashboard post views stats widget
  • Capability to query posts according to its views count
  • Custom REST API endpoints
  • Option to set counts interval
  • Excluding counts from visitors: bots, logged in users, selected user roles
  • Excluding users by IPs
  • Restricting display by user roles
  • Restricting post views editing to admins
  • One-click data import from WP-PostViews
  • Sortable admin column
  • Post views display position, automatic or manual via shortcode
  • W3 Cache/WP SuperCache compatible
  • Optional object cache support
  • WPML and Polylang compatible
  • .pot file for translations included

Get involved

Feel free to contribute to the source code on the dFactory GitHub Repository.

Screenshots

  • screenshot-1.png
  • screenshot-2.png

Installation

  1. Install Post Views Counter either via the WordPress.org plugin directory, or by uploading the files to your server
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the Post Views Counter settings and set your options.

FAQ

No questions yet.

Reviews

The only one that works with latest WP version

I have using “Number of View” for more than 5 years. But then suddenly due to unsolveable problems I have to reinstall my WP. After installing – suddenly the “Number of View” plugin is no more working. I tried 2 different view counters, nothing works. Stop at 0 for days.
After looking around suddenly find this plugin and lo and behold, it works. Thank you very much. It is very flexible in placement and ability to count and do not count certain IP address. Excellent!

Great product, better support

I first installed it just before a significant database change, one that found a conflict with Redis object caching. I submitted a support request on the dfactory website and after several days (plus a weekend), the plugin has been modified to account for object caching brilliantly. Can’t ask for more from a free plugin, and have seen worse support for paid plugins. 5 stars.

This plugin solves my problem

I love this plugin, it’s easy to customise and and very light weight, recommended to anyone. I’ve tried many different ways to display page views, but this plug in is the best way I found.

Read all 65 reviews

Contributors & Developers

“Post Views Counter” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.7

  • Fix: Chart data not updating for object cached installs due to missing expire parameter
  • Fix: Bug preventing hiding the counter based on user role.
  • Fix: Undefined notice in the admin dashboard request

1.2.6

  • Fix: Hardcoded post_views database table prefix

1.2.5

  • New: REST API counter mode
  • New: Adjust dashboard chart colors to admin color scheme
  • Tweak: Dashboard chart query optimization
  • Tweak: post_views database table optimization
  • Tweak: Added plugin documentation link

1.2.4

  • New: Advanced crawler detection
  • Tweak: Chart.js script update to 2.4.0

1.2.3

  • New: IP wildcard support
  • Tweak: Delete post_views database table on deactivation

1.2.2

  • Fix: Notice undefined variable: post_ids, thanks to zytzagoo
  • Tweak: Switched translation files storage, from local to WP repository

1.2.1

  • New: Option to display post views on select page types
  • Tweak: Dashboard widget query optimization

1.2.0

  • New: Dashboard post views stats widget
  • Fix: A couple of typos in method names

1.1.4

  • Fix: Dashicons link broken.
  • Tweak: Confirmed WordPress 4.4 compatibility

1.1.3

  • Fix: Duplicated views count in custom post types
  • Fix: Exclude visitors checkboxes not working

1.1.2

  • Fix: Most viewed posts widget broken

1.1.1

  • Tweak: Enable edit views on new post.
  • Tweak: Extend WP_Query post data with post_views

1.1.0

  • New: Quick post views edit
  • New: Bulk post views edit
  • Tweak: Admin UI improvements

1.0.12

1.0.11

1.0.10

  • New: Option to limit post views editing to admins only

1.0.9

1.0.8

1.0.7

1.0.6

1.0.5

  • Tweak: Added number_format_i18n for displayed views count
  • Tweak: Additional action hook for developers

1.0.4

  • Fix: Possible issue with remove_post_views_count function

1.0.3

  • New: Russian translation, thanks to moonkir
  • Fix: Remove [post-views] shortcode from post excerpts if excerpt is empty

1.0.2

  • Fix: Pluggable functions initialized too lately

1.0.0

Initial release