Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Post Hit Counter

Mô tả

“Post Hit Counter” does what it says on the tin – it counts how many hits your posts receive. Hit counts are displayed in a new column in the post list table, in the submit box on the post edit screen and in the admin bar on the frontend.

Plugin Features

  • Easily visible hit counts in the dashboard and in the admin bar on the frontend
  • Shortcode to display view count for current or specified post
  • Widget to display your most viewed posts anywhere on your site
  • Dashboard widget to show your most viewed posts at a glance
  • No complicated analytics and statistics to wade through
  • Option to select which post types must be counted
  • Option to select which user roles should not trigger the hit counter

This is not meant as a replacement for more advanced analytics plugins – it is a counter so you can see which of your posts are more popular without diving too deeply into complicated viewing statistics.

Want to contribute? Fork the GitHub repository.

This plugin was initially created as a demo for a workshop I ran at WordCamp Cape Town 2014. I have since fleshed it out and enhanced it to be more useful.

Ảnh màn hình

  • The 'Hits' column displayed on the posts list table
  • The hit count displayed on the post edit screen
  • The hit count displayed in the admin bar on the frontend
  • The available settings with their default values
  • The widget displaying the most viewed posts (displayed using the Twenty Fifteen theme)
  • The available options for the widget
  • The dashboard widget showing the most viewed posts

Cài đặt

Installing “Post Hit Counter” can be done either by searching for “Post Hit Counter” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via
  2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Hỏi đáp

When I order posts by hit count in the dashboard it doesn’t show all of the posts – what gives?

When you order posts by hit count in the post list table in the dashboard it will not show posts that have 0 hits. This is due to a limitation in WordPress itself, which will (most likely) be fixed in future versions. Once WordPress is able to accommodate this then I will update the plugin to work accordingly

What is the shortcode for displaying the post hit count?

The shortcode to display an individual post’s hit count is: [hit_count]. If you use the shortcode without any parameters then it will displaying the hit count for the current post. Alternatively you can specify which post’s hit count you would like to display by using the shortcode like this: [hit_count post=123] where 123 is the ID of the post.

How do I reset the hit count for a post?

On the post edit screen, there is a refresh icon next to the hit count – simply click that and the hit count for that post will be reset to 0 without reloading the page.

Đánh giá

29 Tháng Mười Một, 2018
I have been using this plugin for a couple of years. It still works perfectly and I'm using it on WordPress 4.9.8 running Twenty Fifteen theme. Perhaps it can be updated officially to WordPress 4.9.8?
22 Tháng Chín, 2018
Post Hit Counter is a real good plugin. I love the small numbers. The only problem is, it does not work right (count less) with the cache plugins WP Fastest Cache and Comet Cache for sure. Please Mr. Lashbrooke update this plugin! Thank you. Best regards
1 Tháng Sáu, 2017
The data is not real. I installed the plugin on my new site with a few new posts and I quickly noticed one post got a lot of hits. It says: 68 hits I was surprised and wondered. So I carefully watch it, and use Google Analytics to compare. On Google Analytics, I don't have any traffic for my site. I use the Real Time of Google Analytics to watch and there was no one got on to my site (I even closed all tabs that was mysite) - I refesh the backed and the hits increased and it make me lost trust with this plugin. After watching these things for 3 hours, I am now about to remove this plugin. Sorry for a bad review but wrong data means totally useless.
3 Tháng Chín, 2016
I just wanted a back-end view of the most viewed post. Thank you. Its just-right in the post list view and dashboard
Đọc tất cả 11 đánh giá

Người đóng góp & Lập trình viên

“Post Hit Counter” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Post Hit Counter” đã được dịch qua 2 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Post Hit Counter” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi


  • 2015-06-15
  • [FIX] Properly escaping URLs generated by add_query_arg and remove_query_arg


  • 2015-02-19
  • [FIX] Fixing ‘Undefined property’ on post edit screen


  • 2014-12-10
  • [NEW] Adding button to reset hit count for specific post


  • 2014-12-05
  • [TWEAK] Renaming shortcode for consistency


  • 2014-11-28
  • [NEW] Shortcode to display view count for current or specified post
  • [NEW] Widget to display your most viewed posts anywhere on your site
  • [NEW] Dashboard widget so you can see your most viewed posts at a glance
  • [FIX] Fixing ordering of posts by hits in the post list table


  • 2014-11-27
  • [TWEAK] Changing ‘Hits’ to ‘Hit’ in admin bar when hit counter is on 1


  • 2014-11-24
  • [NEW] Adding support for all post types
  • [NEW] Adding option to select which post types will be active
  • [NEW] Adding option to prevent specified user roles from triggering hit counter
  • [NEW] Adding hit counter to admin bar on frontend
  • [TWEAK] Renaming ‘Views’ to ‘Hits’ for consistency


  • 2014-10-22
  • Initial release #boom