Title: Wp Post Views &#8211; WordPress Post views counter
Author: Ronak J Vanpariya
Published: <strong>2020 年 2 月 1 日</strong>
Last modified: 2026 年 5 月 20 日

---

搜索插件

![](https://ps.w.org/wp-post-views/assets/banner-772x250.png?rev=3539043)

![](https://ps.w.org/wp-post-views/assets/icon-256x256.png?rev=3539121)

# Wp Post Views – WordPress Post views counter

 作者：[Ronak J Vanpariya](https://profiles.wordpress.org/vanpariyar/)

[下载](https://downloads.wordpress.org/plugin/wp-post-views.1.23.1.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-post-views/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-post-views/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-post-views/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-post-views/#developers)

 [支持](https://wordpress.org/support/plugin/wp-post-views/)

## 描述

WP Post Views counts the views of your built-in post types (Posts, Pages) and Custom
Post Types. It provides multiple ways to display these counts, including a modern
Gutenberg block, shortcodes, and PHP functions.

### Features And Options:

 * **Simple & Easy:** Designed to be simple and easy to understand for everyone.
 * **Gutenberg Block:** A dedicated “Post Views” block for easy placement in your
   layouts.
 * **IP Filtering:** Option to filter views by IP address to ensure accurate counts.
 * **Post Type Support:** Choose which post types to track in the settings.
 * **Admin Column:** View counts directly in your post/page lists in the admin dashboard.
 * **Performance:** Optimized queries and transient caching for total view counts.

### How to Display Post Views:

**1. Gutenberg Block**
 Search for the “Post Views” block in the editor.

**2. Shortcodes**
 – `[WPPV-TOTAL-VIEWS]`: Display the view count for the current
post. – `[WPPV-TOTAL-VIEWS-PER-POST-TYPE post_type="post"]`: Display total views
for a specific post type.

**3. PHP Function**

### Tutorial

### Development

 * Development happening on GitHub :- [WP Post Views Github](https://github.com/vanpariyar/wp-post-views)
 * Create issue on the GitHub OR Pull request for new feature when new tag added
   it will automatically deployed.

## 屏幕截图

 * [[
 * Post Views column in the WordPress admin post list.
 * [[
 * Main plugin settings page showing post type selection and IP filtering.
 * [[
 * The “Post Views” Gutenberg block in the block inserter.
 * [[
 * Customizing the Post Views block in the editor sidebar.
 * [[
 * Frontend display of post views on a single blog post.
 * [[
 * Using the shortcode to display total views per post type.
 * [[
 * Tracking views across different custom post types.

## 区块

该插件提供了 1 个区块.

 *   Post Views Display the number of views for the current post.

## 安装

 1. Install the plugin via the WordPress.org plugin directory or by uploading the files
    to `/wp-content/plugins/`.
 2. Activate the plugin through the ‘Plugins’ menu.
 3. Configure settings at **Settings > WP Post Views**.

## 常见问题

### Does it work with caching plugins?

Yes. WP Post Views uses a lightweight JavaScript-based tracking method to ensure
views are counted even when your site is served via a caching plugin (like WP Rocket,
W3 Total Cache, etc.).

### Can I track views for custom post types?

Absolutely. You can select which post types to track in the plugin settings page.

### How can I exclude my own views?

The plugin includes an IP filtering feature. You can enter your IP address in the
settings to prevent your own visits from being counted.

### How do I display the view count?

You have three options:
 1. Use the “Post Views” Gutenberg block. 2. Use the `[WPPV-
TOTAL-VIEWS]` shortcode. 3. Use the `get_post_view()` PHP function in your theme
templates.

### Is it lightweight?

Yes, it’s designed with performance in mind. It uses efficient database queries 
and transient caching for aggregate counts to minimize server load.

## 评价

![](https://secure.gravatar.com/avatar/a8c37596e7404ae656847f379a58b471a1d7a52f2d4fdc270f283aa48c6949c1?
s=60&d=retro&r=g)

### 󠀁[Satisfied](https://wordpress.org/support/topic/satisfied-156/)󠁿

 [Willem Jurka](https://profiles.wordpress.org/jurka/) 2026 年 1 月 7 日

The plugin works well. Easy to install.

![](https://secure.gravatar.com/avatar/757919d69619a77ccf097daebad48b894086974905c831becfd3b425d5764e45?
s=60&d=retro&r=g)

### 󠀁[Simple to use and works great!](https://wordpress.org/support/topic/simple-to-use-and-works-great-13/)󠁿

 [justgert](https://profiles.wordpress.org/justgert/) 2024 年 3 月 12 日 4 回复

Very easy to use and works great, that is… if not using any fancy caching methods.
Edit: Updated to 5 stars. The newest version is working in Litespeed server and 
LScache enabled. Thanks Ronak and team!

![](https://secure.gravatar.com/avatar/97e038a95e2be5597e0c230ecbbd4c4b06224c48b5de595329be7d16b206aba5?
s=60&d=retro&r=g)

### 󠀁[crashed straight away..](https://wordpress.org/support/topic/crashed-straight-away/)󠁿

 [psypat](https://profiles.wordpress.org/psypat/) 2023 年 6 月 17 日 1 回复

I added ” [WPPV-TOTAL-VIEWS-PER-POST-TYPE post_type=”post”] ” to the singe post 
page, and it crashed.. …thats it..

![](https://secure.gravatar.com/avatar/f2d684fc55b2ed73275ee81514ecf4bab75c5fd9aff64b420f376ab250865055?
s=60&d=retro&r=g)

### 󠀁[Lightweight plugin that does its job well](https://wordpress.org/support/topic/lightweight-plugin-that-does-its-job-well/)󠁿

 [rodolforizzo76](https://profiles.wordpress.org/rodolforizzo76/) 2023 年 3 月 27
日 1 回复

I’m excited to be able to write a positive review for the “Wp Post Views” plugin!
This tool does the job it’s supposed to do without any frills, and finally someone
has created such a useful plugin! The “Wp Post Views” plugin is incredibly easy 
to use and offers all the basic features you need to monitor the views of your WordPress
posts. There’s nothing superfluous in this plugin – just the essential functions
to track visits to your content. I’m really happy to have found the “Wp Post Views”
plugin. I highly recommend it to anyone looking for a simple and effective way to
track views of their WordPress content. Thank you so much for creating this plugin!

![](https://secure.gravatar.com/avatar/a2197761ce1c1069bdbf36ad0d94f76a17afcb06214f79d698f8ad3147645897?
s=60&d=retro&r=g)

### 󠀁[Полезный плагин](https://wordpress.org/support/topic/%d0%bf%d0%be%d0%bb%d0%b5%d0%b7%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-26/)󠁿

 [andrewminin](https://profiles.wordpress.org/andrewminin/) 2022 年 10 月 19 日

Полезно. Позволяет оценить насколько статьи в блоге интересны читателям.

![](https://secure.gravatar.com/avatar/306c873d2f677dcf01f839f10715797494aa13917f36eeb99157169d28bb22c5?
s=60&d=retro&r=g)

### 󠀁[best](https://wordpress.org/support/topic/best-894/)󠁿

 [rajesh2203](https://profiles.wordpress.org/rajesh2203/) 2020 年 10 月 21 日

Hi, I have recently used this plugin, and it’s help full for me.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/wp-post-views/reviews/)

## 贡献者及开发者

「Wp Post Views – WordPress Post views counter」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Ronak J Vanpariya ](https://profiles.wordpress.org/vanpariyar/)
 *   [ Ankita Tanti ](https://profiles.wordpress.org/ankitatanti/)
 *   [ Brijesh Dhanani ](https://profiles.wordpress.org/brijeshdhanani/)
 *   [ Piyush Asthana ](https://profiles.wordpress.org/piyushmultidots/)
 *   [ Kajal Gohel ](https://profiles.wordpress.org/kajalgohel/)

「Wp Post Views – WordPress Post views counter」插件已被翻译至 1 种本地化语言。 
感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-post-views/contributors)
为本插件所做的贡献。

[帮助将「Wp Post Views – WordPress Post views counter」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-post-views)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-post-views/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-post-views/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-post-views/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-post-views/)。

## 更新日志

#### 1.23.1 – 20/05/2026

 * **New Feature:** Added a modern Gutenberg block to display post views.
 * **Documentation:** Launched new documentation site using VitePress.
 * **Workflow:** Updated GitHub Actions for automated building and WordPress.org
   asset deployment.
 * **Assets:** Added dedicated assets for the WordPress.org plugin page.
 * **Testing:** Expanded PHPUnit test suite to include Gutenberg block rendering.

#### 1.22.0 – 15/12/2025

 * Added PHPUnit testing framework, Composer dependencies, and GitHub Actions for
   CI.

#### 1.21.0 – 26/09/2025

 * Version updates

#### 1.18.0 – 16/12/2024

 * Removed Home page checks from Ajax.
 * Now home page views will be counted

#### 1.17.0 – 30/11/2024

 * Complete architecture Changed on How we count views.
 * we are using simple Js insted of AJAX.

## 额外信息

 *  版本 **1.23.1**
 *  最后更新：**2 周前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 5.4 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/wp-post-views/) 和 [English (US)](https://wordpress.org/plugins/wp-post-views/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-post-views)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[Counter](https://cn.wordpress.org/plugins/tags/counter/)
   [post views](https://cn.wordpress.org/plugins/tags/post-views/)[stats](https://cn.wordpress.org/plugins/tags/stats/)
   [views](https://cn.wordpress.org/plugins/tags/views/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-post-views/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/wp-post-views/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-post-views/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-post-views/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-post-views/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-post-views/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-post-views/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-post-views/reviews/)

## 贡献者

 *   [ Ronak J Vanpariya ](https://profiles.wordpress.org/vanpariyar/)
 *   [ Ankita Tanti ](https://profiles.wordpress.org/ankitatanti/)
 *   [ Brijesh Dhanani ](https://profiles.wordpress.org/brijeshdhanani/)
 *   [ Piyush Asthana ](https://profiles.wordpress.org/piyushmultidots/)
 *   [ Kajal Gohel ](https://profiles.wordpress.org/kajalgohel/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-post-views/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/vanpariyar)