Linux 软件免费装
Banner图

Bubuku Post View Count

开发者 lruizcode
bubuku
更新时间 2026年9月23日 03:27
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

posts post views post count page view count post view count

下载

1.1.0 1.0.4 1.2.0 1.2.1 1.0 1.0.3 1.1.1 1.2.2 1.0.1 1.0.2 1.3.1 1.3.0

详情介绍:

With this plugin, you can easily see how many people have viewed a Post It only runs on Posts and after some time has passed through an Endpoint, so it doesn't affect CWV, and the page loads quickly. The post meta that we store the value in is "views". More information in Spanish about the plugin in the link Show the most viewed Articles, without affecting the loading speed

安装:

  1. Unzip the plugin ZIP file on your computer.
  2. Copy or move the resulting folder to the "wp-content/plugins/" directory of your WordPress installation.
  3. Log in to the WordPress admin area and navigate to the "Plugins" screen.
  4. Locate "Bubuku Post View Count" in the plugins list and click "Activate" to enable the plugin.
  5. Ensure your installation meets the requirements listed in the plugin header (WordPress and PHP versions) before using it in production.

常见问题:

How do I see the view count for a post?

Since 1.2.0 the source of truth is the plugin's own database table, but the total is still mirrored to post meta for backwards compatibility. You can keep using get_post_meta( $post_id, 'views', true ); the date of the last view is available as get_post_meta( $post_id, 'views_last', true ).

Does the 1.2.0 update lose my existing view counts?

No. On activation the plugin copies every existing views post meta into its new table in the background, in batches. The date of the last view isn't available for posts that were only counted before 1.2.0 — the count itself carries over intact.

Does uninstalling the plugin delete my view data?

Yes, by default — deleting the plugin removes its tables, options and deduplication data, in line with WordPress.org's guidelines against leaving data behind. You can turn this off from Settings → Post View Count if you'd rather keep your data for a future reinstall.

Can I choose which content types count views, or exclude certain user roles and bots?

Yes, since 1.2.0. Go to Settings → Post View Count to choose which content types are counted (only Posts by default, same as before), exclude specific user roles (roles that can already edit content are excluded by default), and optionally exclude known bots and crawlers. Unchecking a content type stops counting new views for it but never deletes the views already recorded.

Can I reset the view counts without uninstalling the plugin?

Yes. Settings → Post View Count has a "Delete all data now" button that clears every recorded view, with a confirmation prompt before it runs.

Does this plugin affect page load speed?

The lightweight counter is deferred and sends its request only after the page has accumulated five visible seconds, so it stays outside the initial rendering path. As with any analytics request, its actual server cost depends on the site's traffic and database performance.

Is this plugin compatible with multisite installations?

Yes, the plugin now includes multisite support, including in the uninstall routine.

Can I show the view count inside a post or page?

Yes. Use the [bbk_post_views] shortcode, or add the "Bubuku · Vistas del post" block in the block editor. Both show the current post's view count; add show_last_viewed="1" to the shortcode (or toggle "Mostrar la fecha de la última visita" on the block) to also show the date of the last view. A content type that isn't counting views, per your settings, shows nothing.

Can I see how views have evolved over time?

Yes. Settings → Post View Count includes a chart of views over time (day/week/month) and a comparison of the current 30-day period against the previous one, both drawn from the same data used by the REST/MCP trend endpoints.

Does the plugin respect "Do Not Track" or Global Privacy Control?

Yes, by default. When a visitor's browser sends the DNT or Sec-GPC signal, the plugin still counts the view (it's already anonymous — no IP or User-Agent is ever stored) but skips recording the optional device-width and referrer breakdown for that visit. You can turn this off in Settings → Post View Count if you'd rather always record the full breakdown.

更新日志:

1.3.0 1.2.3 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0