Skip to content

v2.5.4 - WordPress dashboard widget: Top 20 today

Choose a tag to compare

@hummelmose hummelmose released this 24 Jul 05:29
· 25 commits to main since this release

WP VisitChart v2.5.4

New feature: WordPress dashboard widget showing the top 20 most read articles today.


Dashboard widget

A native WordPress dashboard widget is now available on the main wp-admin dashboard. It shows the 20 most read articles today, sorted by today's pageview count.

Each row displays:

  • Article number and title (linked to the post)
  • Views today — blue and bold, this is the sort column
  • Views total — smaller grey number on the right

A link to the full WP VisitChart dashboard is shown at the bottom of the widget.


Implementation

Reads directly from lstats_post_views — no new database queries needed since the data is already maintained in real time by the JavaScript pageview ping. _prime_post_caches() fetches all post titles and URLs in a single batched query regardless of how many articles are shown.

The widget is only registered when the Pageviews column setting is enabled under WP VisitChart → Settings.


Upgrade

Download wp-visitchart.zip below and replace the existing plugin files. No database changes required. The widget appears automatically on the WordPress dashboard after upgrade.