Track daily and total visits on your blog posts. Display the count as well as popular and trending posts.
WordPress doesn’t have an in-built system to track page views or displaying popular posts. Top 10 is an easy to use, yet, powerful WordPress plugin that will count the number of page views of your posts, pages and any custom post types. You can then display the page view counts as well as display your most popular posts.
Top 10 adds two widgets that you can use to display a list of popular posts and the counta cross all your blog posts.
Although several similar plugins exist today, Top 10 is one of the most feature-rich popular post plugins with support for thumbnails, shortcodes, widgets, custom post types and CSS styles. The inbuilt caching system also helps reduce server load by caching your popular posts output. The tracking uses ajax and is thus compatible with most popular caching plugins.
Top 10 also has powerful API and is fully extendable with WordPress actions and filters to allow you easily extend the code base to add new features or tweak existing ones.
[tptn_list]
and [tptn_views]
to display the posts list and the number of views respectivelytptn_thumbnail
) with the dimensions specified in the Settings pageTop 10 is GDPR compliant as it doesn’t collect any personal data about your visitors when installed out of the box. You can see the data the plugin stores in the wp_top_ten
and wp_top_ten_daily
tables in the database. Note: the prefix wp
might be different if you have changed it from the default.
YOU ARE RESPONSIBLE FOR ENSURING THAT ALL GDPR REQUIREMENTS ARE MET ON YOUR WEBSITE.
I spend a significant amount of my free time maintaining, updating and more importantly supporting this plugin. If you have been using this plugin and find this useful, do consider making a donation. This helps me pay for my hosting and domains.
Top 10 is available for translation directly on WordPress.org. Check out the official Translator Handbook to contribute.
Top 10 is also available on Github
So, if you’ve got some cool feature that you’d like to implement into the plugin or a bug you’ve been able to fix, consider forking the project and sending me a pull request. Please don’t use that for support requests.
Top 10 – Popular Posts is one of the many plugins developed by WebberZone. Check out our other plugins:
Navigate to Plugins within your WordPress Admin Area
Click “Add new” and in the search box enter “Top 10”
Find the plugin in the list (usually the first result) and click “Install Now”
Top 10 options - General options
Top 10 options - Counter and Tracker options
Top 10 options - Popular post list options
Top 10 options - Thumbnail options
Top 10 options - Styles
Top 10 options - Maintenance
Top 10 options - Feed
Top 10 widget options
Top 10 Meta box on the Edit Post screen
Top 10 Tools page
Top 10 - Popular posts view in Admin
Top 10 Export/Import interface
Top 10 - Popular posts view in Network Admin
Check out the FAQ on the plugin page and the FAQ on the WebberZone knowledgebase.
It is the fastest way to get support as I monitor the forums regularly.
Details on how to use and customize the output is in this knowledge base article
You can find details of the shortcodes in this knowledge base article
No. Top 10 has been designed to only track the number of page-views on your blog posts and display the same. It isn’t designed to replace Google Analytics or any other full fledged analytics application.
When you enabled the scheduled maintenance, Top 10 will create a cron job that will run at a predefined interval and clean up old entries from the wp_top_ten_daily
table.
Note: If you enable this option, WordPress will execute this job when it is scheduled the first time
Add the following code to your functions.php file of your theme.
add_filter( 'manage_edit-{$cpt}_sortable_columns', 'tptn_column_register_sortable' );
Replace {$cpt}
by the slug of your custom post type. E.g. to make the columns on your ‘projects’ post type sortable, you will need to add:
add_filter( 'manage_edit-projects_sortable_columns', 'tptn_column_register_sortable' );
Enhancements:
Bug fixes:
Release post: https://webberzone.com/announcements/top-10-v3-3-0/
Enhancements:
Bug fixes:
$wp_filters['the_content']
is set. Fixes a PHP warning for users running WordPress before 6.1Import_Export
Class: Fix unnecessary check for network_admin_menu
filter; Minor code fixes to set headers before outputting dataSecurity fix:
Enhancements:
tptn_views
takes two new parameters: format_number
to apply number_format_i18n
and post_id
which takes a post ID. Default is the post being viewedBug fixes:
Enhancements/Modifications:
tptn_thumb_use_image_alt
and set it to false to not use the alt tag. Filter tptn_thumb_alt_fallback_post_title
and set it to false to disable the alt tagBug fixes:
wp_img_tag_add_loading_attr
is deprecated since version 6.3.0the_content
filter detection which sometimes caused the counter not to displaytptn_thumbnail
settings size disappeared from Settings page if this was deselectedmeta_query
argument was ignoredFeatures:
Enhancements/Modifications:
get_tptn_post_count_only()
and get_tptn_post_count
can also take a WP_Post
object and returns an integer only without the count being number formattedtptn_list
shortcode now accepts WP_Query
parameters. You can also pass typical array only parameters as a comma-separated listBug fixes:
For previous changelog entries, please refer to the separate changelog.txt file or Github Releases page