Beschrijving
The Hits List keeps post view tracking on your own WordPress site and gives you block, widget, and template-tag tools for displaying popular content.
Key features:
- Local view tracking stored in WordPress database tables
- Overall and daily popular-post counts
- Popular Posts block and widget support with public post type selection
- WordPress dashboard cards for daily top posts, all-time top posts, and views over time
- Top 10 migration compatibility with resumable rerun-safe imports, WP-CLI tools, legacy widget support, and native widget conversion
- REST-based tracking with AJAX fallback
- Privacy-policy integration for site owners
Privacy
The Hits List stores post view counts locally in the hits_list and hits_list_daily database tables (table prefix may vary).
It does not send tracking data to a third-party analytics service.
Daily tracking buckets are retained for 180 days by default and older rows are removed automatically.
You are responsible for describing your use of visitor analytics on your own site as needed.
Source Code and Build Tools
The compiled block assets in blocks/popular-posts/build/ are generated from the human-readable source files included in blocks/popular-posts/src/.
To rebuild the block assets:
- Go to
blocks/popular-posts/. - Run
npm install. - Run
npm run build.
The block build uses @wordpress/scripts. Runtime PHP, vanilla JavaScript, and CSS assets outside the block build are maintained directly in the plugin source.
Blokken
Deze plugin heeft 1 blok.
- The Hits List – Popular Posts Display the most popular posts as a list or grid based on view counts
Installatie
- Upload the
the-hits-listfolder to/wp-content/plugins/. - Activate The Hits List through the Plugins screen in WordPress.
- Go to Settings > The Hits List to configure tracking and display options.
- If Top 10 data is detected, use the import button on the settings screen to migrate existing counts.
FAQ
-
Does this send data to a third-party service?
-
No. The Hits List stores tracking data locally in your WordPress database and does not call a third-party analytics endpoint.
-
Can I migrate from Top 10?
-
Yes. The plugin can import compatible overall and daily counts from Top 10 tables. Imports are SQL-backed, resumable, and rerun-safe, so repeating the import does not double-count unchanged source data. Very large imports can be monitored from the settings screen or run through WP-CLI. If Top 10 is deactivated, existing Top 10 Popular Posts widgets can continue rendering through The Hits List using their saved settings, and the settings screen can convert those placements into native The Hits List widgets.
-
How long is daily data kept?
-
Daily buckets are retained for 180 days by default. Older daily rows are pruned automatically by a scheduled cleanup task.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“The Hits List” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “The Hits List” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.3.01
- Added public post type selection to the Popular Posts block and widget.
- Added a legacy Top 10 widget compatibility bridge so existing
widget_tptn_popplacements keep rendering after Top 10 is deactivated. - Added a native Top 10 widget migrator that rewrites saved sidebar placements while preserving third-party widget metadata.
- Reworked Top 10 imports to run in resumable batches with status, progress, cancel/restart controls, diagnostics, and WP-CLI commands for large migrations.
- Reworked Top 10 import tracking to store large rerun state in database tables instead of oversized options.
- Improved Top 10 import error messages and asset cache busting in the admin UI.
- Added the
get_thl_posts()helper alias for older integration examples. - Avoided empty
.thl-metawrappers when all post meta display options are disabled. - Confirmed compatibility metadata for WordPress 7.0.
1.3.0
- Added WordPress dashboard cards for daily top posts, all-time top posts, and views over time.
- Added post list table columns for total, daily, and condensed view counts.
- Hardened public REST tracking and counter endpoints.
- Removed the legacy query-string tracking endpoint.
1.2.0
- Normalized tracking to use server-derived blog IDs and validated post targets.
- Reworked daily tracking into true site-local day buckets with upgrade migration support.
- Added rerun-safe Top 10 import state handling.