v2.4.7 - Featured category star badge on article lists
WP VisitChart v2.4.7
New feature: Featured category badge on article lists.
New setting — Featured category
A new dropdown in WP VisitChart settings lets you select one WordPress category as the featured category. Articles in that category display a ⭐ badge in the article lists. Select '— None —' to disable the feature.
Where the badge appears
- Most Active Pages Right Now — admin dashboard and mobile page
- Most Visited Today — admin dashboard and mobile page
Implementation notes
Uses has_term() which reads from the WordPress term cache already primed by _prime_post_caches() — no extra database queries per article.
The badge is placed outside the truncated title element as its own flex-shrink: 0 element between the title and the visitor count, so it always remains visible regardless of screen width.
Upgrade
Download wp-visitchart.zip below and replace the existing plugin files. No database changes required. Configure the featured category under WP VisitChart → Settings.