Top 10 – A Page Counter and Popular Posts plugin for WordPress
WordPress doesn’t count page views by default. With over 180,000 downloads, Top 10 is a highly versatile and easy to use popular posts plugin for WordPress. Top 10 will count the number of page views on your single posts on a daily as well as overall basis. You can then display the page view count on individual posts and pages as well as display a list of most popular posts based on page views.
Includes a sidebar widget to display the popular posts. And, all settings can be configured from within your WordPress Admin area itself! You can choose to disable tracking of author visits on their own posts. The latest version of the plugin comes with a ready to use style that makes those popular posts lists look pretty!
- Page counter:Counts daily and total page views on single posts, pages and custom post types
- Display the count: Customize the text that can be displayed
- Show off popular posts: Display a list of daily and/or overall popular posts by page count. You can choose how many posts are to be displayed plus loads of other customisation options
- Widget ready: Sidebar widgets available for daily popular and overall popular posts. Highly customizable widgets to control what you want to display in the list of posts
- Customisable output:
- Top 10 includes a default CSS style to make your popular posts list look pretty. Choose Thumbnails inline, before title under ‘Thumbnail options’ when using this option
- Output wrapped in CSS classes that allows you to style the list. You can enter your custom CSS styles from within WordPress Admin area under “Custom Styles”
- Pick your own HTML tags to use for displaying the output in case you don’t prefer the default
- Thumbnail support
- Support for WordPress post thumbnails
- Auto-extract the first image in your post to be displayed as a thumbnail
- Manually enter the URL of the thumbnail via WordPress meta fields
- Use timthumb to crop and resize images
- Shortcodes: The plugin includes two shortcodes
[tptn_views]to display the posts list and the number of views respectively
- Exclusions: Exclude posts from select categories from appearing in the top posts list. Also exclude posts by ID from appearing in the list
- Admin interface: View list of daily and/or overall popular posts from within the dashboard. Top 10 will also add two sortable columns to your All Posts and All Pages pages in your WordPress Admin area
- Multisite: Full multisite support. All counts are saved in a single table across all sites to minimise footprint
- Works with caching plugins like WP-Super-Cache, W3 Total Cache or Quick Cache
- Clean uninstall: If you choose to delete the plugin from within WP-Admin, the plugin will remove all its data. But why would you?
- Navigate to Plugins within your WordPress Admin Area
- Click “Add new” and in the search box enter “Top 10″ and select “Keyword” from the dropdown
- Find the plugin in the list (usually the first result) and click “Install Now”
- Download the plugin
- Extract the contents of top-10.zip to wp-content/plugins/ folder. You should get a folder called top-10.
- Activate the Plugin in WP-Admin.
- Go to Top 10 to configure
- Go to Appearance » Widgets to add the Popular Posts sidebar widget to your theme
- Go to Top 10 » Overall Popular Posts and Top 10 » Daily Popular Posts to view the list of popular posts
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 - Custom styles
Top 10 options - Maintenance
Top 10 widget options
Top 10 Meta box on the Edit Post screen
WordPress Multisite: Import Top 10 v1.x counts
Reset count and tools
You can customize how the count is displayed. Use
%totalcount% to display the total count,
%dailycount% to display the daily count and
%overallcount% to display the overall count across all posts.
Enable / disable display of post count in content on single posts and pages. If you don’t enable the first option, then you will need to add
<?php if(function_exists('echo_tptn_post_count')) echo_tptn_post_count(); ?>.
In order to display the most popular posts, you will need to add
<?php if(function_exists('tptn_show_pop_posts')) tptn_show_pop_posts(); ?>.
In order to display the most popular posts, you will need to add
<?php if(function_exists('tptn_show_daily_pop_posts')) tptn_show_daily_pop_posts(); ?>.
Alternatively, use the sidebar widgets to display the overall or daily top posts.
- New: Button in Top 10 settings page to merge posts across blog ID 0 and 1
- New: Function & filter
get_tptn_pop_poststhat can be used to fetch the popular posts as an object or array. Perfect if you want to write custom code in your theme
- New: Support for WPML to return the correct language ID. Thanks to Tony Flags' code snippet.
- New: Filter
tptn_list_countto modify the formatted list count. See a working example
- New: Post types can now be selected in the widget. This allows you to select top posts by post type
- Modified: Plugin will attempt to pull the correct size image when fetching the first image in a post
- Modified: Deprecated "Always display latest post count in the daily lists"
- Modified: timthumb has been deprecated. The script is no longer packaged within Top 10
- Fixed: Bug in tracking code when not using Ajax
- Fixed: Bug in admin column did not check for the blog_id
- Fixed: Bug where default thumbnail location was not correctly saved
- Fixed: Incorrect thumbnail was pulled on attachment pages
- Fixed: blog_id column of the database is correctly initialised as
Writing and testing plugins takes a good amount of time. If you like the plugin and find it useful and would like to donate something for my work please do click the PayPal Donate button below. The payment is secure. I haven’t filled in any amount. Feel free to donate what you please. Any amount is welcome. Thank you
All files and their contents are licensed under the GPL v2+.
Please use the support forum if you have any questions regarding the plugin or would like to report bugs.
The following translations are available:
- Azerbaijani by WebhostingRating
- Belorussian by FatCow
- Dutch by Rene
- French by Leiste.de
- German by Ulli
- Hindi by Ashish
- Irish by Let’s be Famous
- Italian by Gianni
- Russian by Kopper
- Romanian by Web Hosting Geeks
- Serbo-Russian by Webhosting Hub
- Spanish by Autoersatzteile
- Ukrainian by Web Geek
If you would like to provide a translation for the plugin or update any of the existing translations, please do drop me an email.