
內容簡介
WordPress 沒有內建的系統可以追蹤網頁瀏覽量或顯示熱門文章。 Top 10 是一個易於使用、功能強大的 WordPress 外掛程式,可以計算您的文章、頁面和任何自訂文章類型的網頁瀏覽量。然後您可以顯示網頁瀏覽次數以及顯示最受歡迎的文章。
Top 10 添加了兩個小工具,您可以使用它來顯示熱門文章列表和跨所有您的博客文章的計數。
雖然今天存在著一些類似的插件,但 Top 10 是其中功能最豐富的熱門文章插件之一,支援縮略圖、短碼、小工具、自訂文章類型和 CSS 樣式。內置的緩存系統也有助於通過緩存您的熱門文章輸出來減少服務器負載。跟踪使用 AJAX,因此與大多數流行的緩存插件兼容。
Top 10 還具有強大的 API,可完全擴展WordPress 動作和篩選器,以便您輕鬆擴展代碼庫以添加新功能或調整現有功能。
功能特色
頁面計數器:按每小時計數單個文章、頁面和自定文章類型上的網頁瀏覽次數,然後可以使用短碼或功能輕松地自動顯示
熱門文章:顯示熱門文章列表,可以是總計數或自定週期。您可以選擇顯示多少文章以及其他許多自定義選項
Gutenberg / 區塊編輯器支援:您可以找到一個叫做“熱門文章[Top 10]”的區塊,具有自己可配置的一組選項
小工具就緒:側邊欄小工具可用於每日熱門和整體熱門文章。高度可自定義的小工具,以控制在文章列表中要顯示的內容
短碼:插件包括兩個短碼 [tptn_list] 和 [tptn_views],分別顯示文章列表和瀏覽量
縮略圖支援
支援 WordPress 文章縮略圖。 Top 10 將使用設置頁面中指定的尺寸(tptn_thumbnail)創建自定義圖像尺寸。
自動提取文章中的第一張圖像作為縮略圖
通過 WordPress 元字段 手動輸入縮略圖的 URL。使用編輯螢幕中的元框指定此選項。
排除:排除某些類別的文章不出現在熱門文章列表中。還可以排除文章 ID 出現在列表中
樣式:輸出由 CSS 類包裹,可讓您輕鬆樣式化列表。您可以從 WordPress 管理區域輸入自定義 CSS樣式,也可以使用包含的樣式。
管理介面:在儀表板內查看每日和/或整體熱門文章列表。 Top 10 還在您的所有文章和所有頁面頁面中添加了兩個可排序列
導出/導入介面:將計數表和設置導出以在同一站點或其他安裝中還原
與 WP-Super-Cache、W3 Total Cache 或 Quick Cache 等緩存插件一起使用
可擴展代碼:Top 10 具有許多篩選器和動作,允許任何開發人員輕鬆添加功能、編輯輸出等。
GDPR
Top 10 是 GDPR 合規的,因為在預設情況下安裝時不會收集有關訪問者的任何個人數據。您可以在數據庫中查看插件存儲的數據 wp_top_ten 和 wp_top_ten_daily表。注意:如果您已將前綴更改為默認值以外的其他值,則前綴 wp 可能不同。
您有責任確保您的網站符合所有 GDPR 要求。
外掛標籤
開發者團隊
② 後台搜尋「WebberZone Top 10 — Popular Posts」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
WordPress lacks built-in page view tracking or a popular posts feature. Top 10 solves this by counting views across posts, pages, and custom post types, then letting you showcase your most popular content.
Top 10 provides blocks, widgets, shortcodes, and template functions for displaying popular posts and view counts across your site. All tracking data is stored locally in your WordPress database, with no external services involved.
Top 10 includes comprehensive features such as thumbnail support, flexible display options, custom post type support, and developer-friendly extensibility. A built-in caching layer reduces server load, while AJAX-based tracking avoids page cache interference and works with most popular caching plugins.
Top 10 also exposes a powerful API with WordPress actions and filters, allowing developers to customise queries, tracking behaviour, and output rendering without modifying core plugin files.
Features
Page Counter: Tracks hourly post views on posts, pages, and custom post types. Display counts automatically using blocks, shortcodes, or template functions
Popular Posts: Display most viewed posts by total counts or within custom time periods
Gutenberg Support: Dedicated “Popular Posts [Top 10]” block with configurable display options
Multisite Dashboard: Network-wide aggregated statistics across all sites in a multisite installation
Widgets: Sidebar widgets for daily and overall popular posts with extensive customisation
Shortcodes: Use [tptn_list] to display popular post lists and [tptn_views] to show view counts
Thumbnails:
WordPress post thumbnail support with custom tptn_thumbnail image size
Automatic extraction of the first image from post content
Manual thumbnail URLs via Edit Post screens
Exclusions: Exclude posts by category or post ID from popular post lists
Styling: Output wrapped in semantic CSS classes. Add custom CSS via settings or use included styles
Admin Interface: View daily and overall popular posts from the dashboard. Adds sortable view-count columns to post and page lists
Export/Import: Export count tables and settings, and restore them on the same site or other installs
Caching Compatibility: Works with WP Super Cache, W3 Total Cache, Quick Cache, and similar plugins
Developer-Friendly: Extensive filters and actions to customise queries, tracking behaviour, and output rendering
Features in Top 10 Pro
Enhanced Tracking and Performance
Fast and High-Traffic Trackers: Alternative tracking methods for improved performance on busy sites
Query Optimisation: MySQL MAX_EXECUTION_TIME directive to prevent long-running queries, configurable via settings and the top_ten_query_max_execution_time filter
Data Retention Override: Customizable data retention period (default 180 days via TOP_TEN_STORE_DATA)
Advanced Blocks and Widgets
Top 10 Query Block: Query and display popular posts directly from the block or site editor
Enhanced Top 10 Featured Image Block: Support for multiple image sources with fallbacks
Popular Posts Block Enhancements:
Save and clear default block settings with a single click
Auto-insert default and global settings attributes with an option to disable
Enhanced Admin Tools
Admin Bar Integration: Admin bar menu item to view daily, total, and overall post counts, access admin pages, and clear cache
Disable Admin Bar menu: Setting to disable the Admin Bar menu
Dashboard Access Control: Setting to control which user roles can view the Top 10 dashboard
Display Settings: Setting to choose which post type screens display admin columns
Mini “Top 10 Views Overview” widget: Compact views-over-time chart on the WordPress Dashboard
Multisite Settings Copy: Tool to copy settings between sites in a multisite network
Custom Display Options
Taxonomy-Specific Displays: display_only_on_tax_ids parameter to restrict popular post displays to specific taxonomy terms
Category Inclusion: Edit Post meta box option to include popular posts from specific categories
RSS Feed Filtering: Filter RSS feeds by category or post type via settings or URL parameters
Developer-Friendly Features
Custom Post Type Sortable Columns: Admin columns on supported custom post types with sortable functionality
GDPR
Top 10 does not collect personal visitor data out of the box. Tracking data is stored locally in the wp_top_ten and wp_top_ten_daily database tables (table prefix may vary).
You are responsible for ensuring GDPR compliance on your website.
Translations
Top 10 is available for translation on WordPress.org.
See the Translator Handbook to contribute.
Contribute
Top 10 is developed openly on GitHub.
Fork the project and submit pull requests for bug fixes or improvements. Please do not use GitHub for support requests.
Other WebberZone Plugins
Contextual Related Posts – Display related posts on your WordPress site and feeds
Better Search – Enhance WordPress search with relevance-based results
Knowledge Base – Create a knowledge base or FAQ section
WebberZone Snippetz – Manage custom HTML, CSS, and JavaScript snippets
Auto-Close – Automatically close comments, pingbacks, and trackbacks
Popular Authors – Display popular authors widgets. Addon for Top 10.
Followed Posts – Show related posts based on reader journeys
