Top 10 – A Page Counter and Popular Posts plugin for WordPress

Top 10 now has a new home at WebberZone. Check out the dedicated page and access support.


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.

Top 10

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 list format
  • 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_list] and [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?


WordPress install

  1. Navigate to Plugins within your WordPress Admin Area
  2. Click “Add new” and in the search box enter “Top 10” and select “Keyword” from the dropdown
  3. Find the plugin in the list (usually the first result) and click “Install Now”

Manual install

  1. Download the plugin
  2. Extract the contents of to wp-content/plugins/ folder. You should get a folder called top-10.
  3. Activate the Plugin in WP-Admin.
  4. Go to Top 10 to configure
  5. Go to Appearance Β» Widgets to add the Popular Posts sidebar widget to your theme
  6. Go to Top 10 Β» Overall Popular Posts and Top 10 Β» Daily Popular Posts to view the list of popular posts


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.

Support the Development

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+.

Questions or Bugs

Please use the support forum if you have any questions regarding the plugin or would like to report bugs.


Download Top 10

(Visited 152,598 times, 2 visits today)

245 thoughts on “Top 10 – A Page Counter and Popular Posts plugin for WordPress”

  1. The documentation does not explain how to display the list of the top 10 posts, just the count for the current post or page.

  2. Thanks for the info I requested in #3. Now here’s a suggestion: number_format the counters. I am converting to top-10 from another page counter and I have over 200K hits on many pages. I changed the relevant line in top-10.php to:

    $cntaccess = number_format((($resultscount) ? $resultscount->cntaccess : 0), 0, ‘.’, ‘,’);

    Others may want to do the same.

  3. I will download πŸ™‚ But I won’t use it before you have a widget! That should be a top priority πŸ˜‰

  4. If I uninstall the plugin and then reinstall it will it start from scratch?

    I’m looking for a plugin that will provide me with a list of the most popular posts but will allow me to reset it every month.

    1. You need to deactivate, and delete the plugin from WP-Admin > Plugins.

      However, this is a lengthy process and if you are looking for most popular posts by month, this isn’t the best plugin for the job.

  5. Is it possible to also display the number of posts for the actual day. Something like: 300 views of which 20 today

    Thanks for a great plugin!

  6. hi I was previously using Mark Gosh’s Top Ten. If I start using yours it’ll negate all the hits my site had accumulated until the previous plugin stopped working.

    Anyway to get your Top Ten to work with the old Top Ten?

    many thanks

    1. All you need to do is change the name of the table using phpmyadmin to wp_top_ten, assuming that your prefix is wp_ (this is the default that comes with WP. Check wp-config.php)

  7. I’m glad to say that this plugin works when others do not! I was trying to use the wp-postviews plugin but it would always cause a fatal error when activating. Figured it down to a conflict with the wp-subdomains plugin. This one works flawlessly though. Although I don’t mind having the views be public, it would be nice to have the option to have it be viewable only by staff and maybe in the admin dashboard. Either way, glad I found a plugin that can count my views! πŸ˜€

      1. I like the dashboard widget showing popular posts. I actually meant like add another column to the posts dashboard the shows how many hits each post has gotten. I dunno if it’s possible, but would be a nice feature.

  8. You’ll need to edit it in PHPmyAdmin. However, like I said, I don’t think the plugin you use stores its statistics in the WordPress database on your site, but on servers.

  9. Hello,

    Thanks for the plugin, I have it installed on a blog but the other issue I have having is its displaying the number of views beside the title. How can I remove that?


  10. First, thanks for the plugin!

    I noticed that unpublished pages show up in the list. I have one or two \”test\” pages that I use to try out new things (plugins, code, etc.) that I never publish but hit semi-frequently.

    The following changes remove drafts from the list:

    $sql = \”SELECT postnumber, cntaccess , ID, post_type \”;


    $sql = \”SELECT postnumber, cntaccess , ID, post_type, post_status \”;

    (two instances)

    And add the following line:

    $sql .= \”AND post_status = ‘publish’ \”;

    above the \”ORDER BY\” line in both the same SELECT blocks you made the previous changes to.

    All four changes in top-10.php.

    Pretty straight forward and I don’t really see any reason why this couldn’t/shouldn’t get rolled into a future version. I can’t imagine why people would *really* want to count the hits their drafts get anyway.

  11. Nice plugin. I’ve one suggestion – can you make the post count on the end of the top 10 list be optional?

    1. I’ll had this in mind, but it slipped out of my mind in this release. I’ll put this as a to-do in the next release, along with some other formatting options I have in mind.

  12. Thanks for your Plugin. Is there a way to change the style of the Top-Post-Line on the bottom of each entry? For me it is styled like the whole post, but I like it to be in italic or something different from the main post-area. Thanks in advance!

  13. Great plugin! Love it! Just one request: It would be nice to be able to exclude certain pages/posts (e.g. by post/page number) from being shown in the top 10. Especially the static home page would be the first I would put on that exclusion list.

    1. I think that can be done, especially if it is an exclude by number. I’ll probably thrown in a exclude by categories option as well.

        1. That is cause it is inbuilt. I’m currently working on a version that provides you with the option to select between ordered and unordered list.

          Currently, if you want, you can edit the top-10.php file and change the ul to ol

  14. @Raju, You’re welcome. Glad to know you chose this plugin for tracking your posts.

    Do, blog and spread the word πŸ™‚

  15. Hi there,

    Thanks for the plugin! I tried a different one first, which didn’t work with qTranslate (output titles in all languages), but yours works just fine, which is great.

    I have one query though – I’m using the widget in my sidebar, but would prefer to only show \”Popular Posts\” and not \”Daily Posts\”. Would it be possible to add this functionality to the widget, so that one can tick whether to include one or the other, or both? I can add the PHP code to my sidebar and it works fine, but would be great too control this directly in the widget.

    Thanks again!

  16. Sorry, just had another look at the widgets page, and see thre are already two separate ones! Could almost swear I only saw and added one, but I guess I’m dreaming. Either way, all works great, I’m now running just the \”popular posts\” widget and it works great.


  17. When do you plan to publish new version with most popular by comments? I can see you have it on the TO DO list πŸ™‚
    Thanks for the plugin, I was looking for it a while πŸ™‚

  18. Hi Ajay,

    Thanks again for the plugin. I was wondering if there are any news on the option to remove either the static page or pages by ID (or both)? That would be a great feature – at the moment, the start page is showing top of my list and it would be better if it wasn’t there! : )


    1. I plan on providing a simple field that will allow the user to enter a comma separated list of IDs. This IMO, is the fastest implementation of the same. And, you’ll need to only enter this once.

      1. Thanks for the reply! Yes I agree, a comma separated list would be quick and easy to administer, I couldn’t imagine most people wanting to exclude too many pages anyway.

  19. Hey Ajay,

    Thanks for the great plugin. However, the counter doesn’t seem to be working which prevents any posts from being displayed in the widget. The widget is enabled and working as I can see the title on the front page.

    Would appreciate any help.


  20. Hey,

    Good job with the plug-in.

    How can i add custom fields for daily and total post count? I want topten to work with smart sort, so i can sort posts by view count. It’s possible with wp-postviews, but i hate that thing πŸ™‚ Maybe you will add custom field feature into next release?

    Thank you for your answer.

  21. Hey there!

    just wondering if there is a way to filter the list so it can show top 10 in a specific category?

  22. Hi,

    Really like the Top 10 plugin only I have an issue that I wonder if you could explain. I would like to reset the lists each hour or every second hour instead of once a day.

    What can I do to mod the plugin to do just that?

    Best Regards,

  23. Can you add a “Top most viewed category” option? Basically just add up total view count of all the posts within a category and return a category top list. I would install another plugin to do this but, its much easier within one native plugin such as “top 10”.

  24. add a function to the plugin so that you can put ranks on which post/page is most viewed:

    1. Post-title-here. (viewed 34 times)
    2. Post-title-here. (viewed 29 times)
    3. Post-title-here. (viewed 10 times)
    4. Post-title-here. (viewed 9 times)
    5. Post-title-here. (viewed 5 times)

  25. i am using this awesome plugin.
    But by default it is using featured image and not using custom field image.
    I want it to use custom field image not featured image.

    How to do it.
    using daily popular post.

    1. Nitin, the first priority of the plugin is to use the featured image, since that is associated with the post. It will use the custom field only in case there is no featured. However, I plan on changing the priorities in a future release

  26. Great plugin. Thanks.
    But for some reason, the doesnt want to become a header as its written in the css file.

    As a suggestion, It would be nice if I could choose how to display the top10 list, for example: the link/headline as a h3, then the image, then then excerpt. Example here:

    Another suggestion: Able to show 10 random post out of a top100/500 (whatever) list so it wont always be the same list every time people surf on the site – cuz for me at least, the search engines are killing the list a bit.

    1. Mickey, I like the second suggestion. I’ll need to figure out how to get it to work.

      Regarding the first, you should be able to use CSS to customise the layout. Try using the display:block setting? But, this will be a bit of painful styling.

  27. btw, you need to make something different with your comments. It seems broken after I post one. Cant see anything. It would also be nices if all of the comments are shown directly, and not just a few on each page.

  28. Hello Ajay,

    I have downloaded the plugin and customized to my liking but do not know how to get on homepage. I see in instructions you advise to add to sidebar widget in appearance but I would like to add this widget to homepage right sidebar on my site.

    Can you please advise how I can grab the code to paste on Homepage instead of Post page.

    Greatly Appreciated

    1. Sorry, I figured out how to get on Homepage. I have pasted the following code:

      However, it displays a black block and can only see the links when I hover over the posts. Can you please advise on how to edit so that it displays without having to hover over links?

      P.S. When hovering, the links are the right color πŸ™‚

        1. Hi Ajay,

          Not sure what you mean by post a link. I took the code off the homepage for now…would it be easier if I left on for you to assess?


  29. Hi,
    thanks for this plugin, I wanted something like that. πŸ™‚
    I have just installed it, but nothing appears in homepage. I mean I didn’t see anything. Do you think I have to wait o I have to do something?
    Thanks for you time, I really appreciate your help. πŸ™‚

  30. Hi,

    Awesome plugin, we are struggling with one issue.

    On the dashboard, there is a list of the top ten daily and overall posts. Under each, links to go down through the next 10, and the next 10, etc.

    As the admin, I can click on these and go down through the different pages, .

    But when my contributors try to do that, the get a page that says: \”You do not have sufficient permissions to access this page.\”

    The can see the top 10 on the dashboard ok, but if they they go to, for example:

    They get the error. Any ideas on why or what I can do to fix that?

    Thanks, Chris

    1. Currently Contributors cannot modify posts:

      A quick fix is to move line 367 in by moving this line out of the }

      add_posts_page(__(\"Popular Posts\", TPTN_LOCAL_NAME), __(\"Top 10\", TPTN_LOCAL_NAME), 9, 'tptn_manage', 'tptn_manage');

      I more complicated way is to check for Capability: edit_posts

      1. Thank you very much for the fast reply Ajay.

        I moved the line outside of the bracket, but then it gave me the same ‘You do not have sufficient permissions’ error even when I am logged in as admin.

        I moved the line that was like this:

        add_posts_page(__(\”Popular Posts\”, TPTN_LOCAL_NAME), __(\”Top 10\”, TPTN_LOCAL_NAME), 9, ‘tptn_manage’, ‘tptn_manage’);

        1. To this:

          add_posts_page(__(\”Popular Posts\”, TPTN_LOCAL_NAME), __(\”Top 10\”, TPTN_LOCAL_NAME), 9, ‘tptn_manage’, ‘tptn_manage’);

        2. Could you please try this piece of code, separate from the other \”if\” loop.

          if (current_user_can('edit_posts')) {
          add_posts_page(__(\"Popular Posts\", TPTN_LOCAL_NAME), __(\"Top 10\", TPTN_LOCAL_NAME), 9, 'tptn_manage', 'tptn_manage');

          1. hmm, if I put it in the same place (between the } and the }, it does not change anything, I can see those pages as admin, not as contributor (contributers do have ‘edit posts’ privilages).

            If I put it outside the second bracket, just before the ‘add_action(‘admin_menu’, ‘tptn_adminmenu’);
            ‘ line, I get s server error.

  31. Thanks a lot for your plugin! πŸ˜€
    I’ve noticed that the plugin icreases posts views…while admin ‘checks and manages’ theme from frontend.
    The related option is unchecked in the backend plugin interface.
    What i’m doing wrong?

    See you soon!

    1. Danilo, it is just post-authors that are not counted. However, I’ll take this point into consideration as a possible new feature

      1. Ok, ty!
        Another quick request: can i change the number format of views? Without any coma or dot…
        What code i’ve to modify to do that?
        Thanks a lot Ajay

        1. Unfortunately, no easy way to do that either. You’ll need to edit a few files.
          Line 191 of top-10.php and line 37 of top-10-counter.js.php display the count
          You can use number_format to format the count

  32. i have some problem with this plugin, after i upgrade to Version 1.7
    1. View Daily Popular Posts data is no longer exist, after i upgrade
    2. It stop counting! the data still there, but its no longer counting hit click.
    can you help me please, what is the problem?

  33. Thank you for the plugin, I love it! Btw I just want to suggest if it would be possible to also make a top 10 for each category or tag.

  34. hello. awesome plugin. i plan on using it to display thumbnails from my top 10 posts. i can get that part working, no problem.

    ive played with the width and height in the thumbnail settings of your plugin. wondering if possible to just set a width on the thumbnail, and leave the height alone, so vertical images arent squished into a square or a horizontal.

    let me know if theres a code i can drop in, or delete to take care of this.

    thanks in advance!

    1. Ray, this is a feature I’m currently working on. I plan on using timthumb for this, since that seems to be the best option. However, I’m not sure how correctly this auto-resizing will work

  35. I want to change the text on the widget. \”Comments\” and \”Views\”.. How can i do it? Thanks for your fantastic plugin!

  36. First i wanna say thank you very much for this great plugin. This plugin should be a lot of more famous its 100 times better than the most i saw until now.

    How can i show the Views myself?
    I want to display (Visited %totalcount% times, %dailycount% visits today) myself on the single page
    but im not sure wich code i can use to display it.

    thanks in advance

  37. Hi, is there a way to modify the plugin so that it multiplies the number of hits? i.e. to 2) to inflate post views by 2 perhaps? πŸ™‚


    1. Well, not sure why you would want to do that, but you could modify the top-10-addcount.js.php file and add a x2 where the count is added

  38. Hello Ajay,

    I would like to use the counter but not display the TOP 10 posts on my website. I noticed that the view counts are right on the Posts page in WordPress. It is exactly what I want minus the TOP 10 widget displaying on my website.

    Thanks in advance,

  39. I’m trying your plugin, but there is problem with popular post, it showed duplicate posts on show. moreover, i want to know how to style the excerpt. thanks for your plugin. one more, the output format is not working as it should be

  40. Greetings! I just realized that I can add a thumbnail to my Most Popular listings. But I can’t seem to put the image on the left with the headline next to it on the right. Thanks in advance for any suggestions.

    1. Bryan, you’ll have to style the tptn_thumb to float the image left. Unfortunately, I don’t have a styling option off the shelf.

      Are you already using some CSS styles for this?

    2. here is what i did to my top-10 plugin. I choosen thumbnail after tittle, making title with a different sytle than excerpt. hopefully, this helps your problem.

      if (!$p_in_c) {
      $output .= $tptn_settings[‘before_list_item’];

      $output .= ‘postnumber).’\” rel=\”bookmark\” class=\”tptn_link\” style=\”font-size:11px; font-style:normal;\”>’; // Add beginning of link
      if ($tptn_settings[‘post_thumb_op’]==’after’) {
      $output .= ”.$title.”; // Add title if post thumbnail is to be displayed after
      if ($tptn_settings[‘post_thumb_op’]==’inline’ || $tptn_settings[‘post_thumb_op’]==’after’ || $tptn_settings[‘post_thumb_op’]==’thumbs_only’) {
      $output .= ”.tptn_get_the_post_thumbnail($result->postnumber).”;

      1. sorry, here is the code

        $output .= ‘<a href=\”‘.get_permalink($result->postnumber).’\” rel=\”bookmark\” style=\”font-size:11px; font-style:normal;\”>’; // Add beginning of link
        if ($tptn_settings[‘post_thumb_op’]==’after’) {
        $output .= ‘<div>’.$title.'</div>’; // Add title if post thumbnail is to be displayed after
        if ($tptn_settings[‘post_thumb_op’]==’inline’ || $tptn_settings[‘post_thumb_op’]==’after’ || $tptn_settings[‘post_thumb_op’]==’thumbs_only’) {
        $output .= ‘<div style=\”float:left;margin:0 7px 0px 2px;\”>’.tptn_get_the_post_thumbnail($result->postnumber).'</div>’;

  41. Hey guys, on my site the counts are going crazy every pageview counts like 5-50 pageviews.
    is there anyone who got the same problem?

    1. Ajay recently released a new version of this plugin. Try version 1.8, maybe it will solve your problems.

  42. This is a great plugin, I love it!
    But how can I prevent some posts from sowing in the widget?
    Can I exclude a specific post or at list lower the number of hits for it so it doesn’t show in the widget?
    I spent a lot of time searching for solution, but no luck.
    Ajay, please help!

    1. The only way to do that is to directly reset the count in the database using phpMyAdmin. Remember to backup your database before you attempt this.

  43. This comment was posted by someone named Spotted back in November ’11:

    \”First i wanna say thank you very much for this great plugin. This plugin should be a lot of more famous its 100 times better than the most i saw until now.

    How can i show the Views myself?
    I want to display (Visited %totalcount% times, %dailycount% visits today) myself on the single page but im not sure wich code i can use to display it.

    thanks in advance\”

    He wrote again that he figured it out, but didn’t bother to share how he figured it out. Can you let me know how, or what code is used, to accomplish this?


  44. Hi, thanks for the great plugin! Could I please find out if there is an option to have the post view counter at the top of the post rather than the bottom of the post? Not sure if there’s an option that I missed, or if it’s possible at all. Thanks! πŸ™‚

  45. Hi at all,

    I’ve a really awesome problem: After installing this plugin I saw the counter in the posts, but after configuration in the admin-panel there is no more counter to see.

    Because the counter on the single posts is not so important for me, I tried to configure the listings on our left sidebar, because I want to show both lists. With the widget the top of all list no prob. With the code in the theme, no chance.

    WP 2.9.2. What can I do?


  46. Is there a way to display number of page views in popular lists at the beginning on the left side of the link. Right now it’s displaying at the end of the description.

  47. Thank you for this awesome plugin, Ajay!

    One question: I would like to include display of pages in addition to posts in the Popular list widget, and I see the setting to make that happen, but I would like to exclude certain pages (such as \”Home\”) from the list display. I see the ability to exclude categories, but is there a way to specify pages to exclude?

    Thank you for your help!

    1. LT, there isn’t a direct method right now unfortunately. One suggestion is you can create a new category and add these pages to that category.

      1. Wow, thank you for the fast response! I appreciate that. I was afraid that might be the case, but thought I’d ask (and it’s really a minor thing, easy enough to live with). The plugin still rocks in every other way πŸ™‚ Thanks!

  48. I would like to filter popular post by category so that I can show different top10 lists for different categories of posts. Is this possible today or maybe something you might implement?

    I am also interested in creating RSS feeds from the top10 lists is this possible today or maybe on the TODO list?

    1. Andreas, the category wise option doesn’t exist yet. I can put it on my to-do list. Regarding the RSS feed, I am not really sure if that will be on the to-do list. It will depend on user requests and how easy WP allows you to create custom RSS feeds

  49. Hey Ajay.

    Downloaded the v1.8 and kudos to ya. Found no other plugin like that (Saved myself a week). But got a little problem with that.

    The titles appear inline with the thumbnails. And if the titles are longer , it begins in a newline. And is there anything we can do to make titles appear simultaneously with the image. Look at the image what i mean to say.

    The right side image is from mashable. And I want it like that.

    If you can fix this or it needs a simple tweak. Let me know.


    1. Bobby, the thumbnail resizing is relative, i.e. it keeps the pictures scales. I plan on using timthumb in a future version, but haven’t had the time to implement this.

      Regarding the styling, this is totally up to you. The plugin outputs codes with several CSS classes which you can use to style the output. Unfortunately, I’m no expert on the code to be used to achieve this result.

  50. Thank you for your effort, and good result. I like this plug-in, for me it is default in WP distribution…

    And I have a small idea… Would it be possible to realise a %totalsitecount%, so cumulative site-figures are available? Just a thought…

    Thanks for the great work!


  51. How to full remove this plugin also from database? i removed it and re added it..but its just showing the visits from 1 category even if i exclude it

  52. thats not true..if you add the plugin again than it have the old settings..and it keeps also the views in database

    1. Malo, I just deleted the plugin from my Test blog and reinstalled it. The plugin is deleting the posts counts, but retaining the settings. I am investigating to see what could be the problem.
      Until then you can hit the default options button in the Settings screen to reset the settings.

    2. Malo, I rechecked my installation. The settings seem to delete fine in my installation.

      May I ask how you are deleting the plugin?

  53. i love your plugin, i put your plugin in all of my blog. I will love more if you could make the widget title more flexible. could you bring the title widget option on the setting, so i don’t need to change the source code?

  54. First i deactivate it in plugins page than i remove it manually from the plugins folder. I think its not a problem with your plugin i think its a problem with my database. If i add your plugin again than its just counting the views from 1 category even if i exclude the category. I already removed it and installed it like 10 times i also removed the tables in phpmyadmin manually but with no luck. I tested a other popular plugin and its the same its just counting the views from 1 category so it cant be a problem with your plugin.

    1. You need to delete the plugin from the page in admin. the delete option becomes available after you deactivate the plugin.

  55. Thanks for the great plugin! Is there a way to display or extract the rank number of the popular posts? By this I mean I want my list to display – next to the thumbnail and the post tile – \”#1\” if it’s the most popular, \”#2\” if it’s the second most popular, etc. Like:

    1. Most popular post
    2. Second most popular post
    3. Third most popular post
    4. Fourth most popular post
    5. Fifth most popular post

    1. In the Settings page, you could try using an ordered list ol instead of the default ul. This should put the numbers in place.

  56. it doenst matter how i do keeps the wp_top_ten_daily table in the database and also all views

  57. Plugin could not be deleted due to an error: Could not fully remove the plugin(s) top-10/top-10.php.

  58. Help me! I have installed the plugin but the news didn’t appear in the widget. In addition, visits to the articles are counted twice. How is this possible?

  59. Hello Ajay, this is a great plugin. I installed it but count increment wouldn’t work in firefox. It works fine on other browsers. The view count for every page stays at 1. Is it tested on firefox? What am I doing wrong?

  60. Hi, I was wondering if you ever got around to creating seperate divs for the title and the img. This is exactly the plugin i was looking for but cant really implement because I dont know where/how to change the css of the title. I looked at the elements and it’s tied together with the image so I am not able to bring the title up to the top of the img. Below is a pretty simple sketch of what I am referring to

    ___________ ____________
    | | | | Would like title up here
    | img | | img |
    | | | |
    |__________| Titie is currently here |___________|

  61. Hello. We have 4 sites, all use this plugin. Today it just stops working on one site. No changes were made. It just says \”Daily Popular No top posts yet\”.

    I deactivate it, and delete the plugin tables in mysql db. I install again and \”no top post yet\”.
    Do you know what else i can do?

    1. Could you please make a detailed post on the issue in the support forum for the plugin on

      Easier for me to track there.

  62. Hello,
    I want to use this plugin in our theme that we want to sell it in, Is it legal to use it in products that we want to sell?!

    1. Sweden, if you’re theme is GPL, it won’t be illegal to use this plugin. However, I do not recommend doing so, since it is actively updated and you don’t want your theme users to end up using old versions of the plugin.

      I suggest that you mention to your theme users a quick way to install the plugin from the repository.

  63. It is a great tool … but since latest update the daily count doesn’t show up in the backoffoce. Not in Article List and not on Dashboard … the counting itself seems to be o.k.

  64. Great plugin! I’ve been using it for years now, thank you!

    Btw just a suggestion: I think it’s better to use WPthumb instead of timthumb for generating thumnails since timthumb has questionable security and WPthumb is very cache friendly since it generates and saves an actual picture.

  65. Since WP 3.5.2 update, page counts go to 1 but no further. Existing page counts are unaffected.

  66. After updating to 1.9.6 still daily count doesn’t showing. I tried to reset, activate-deactivate and flush cache…

  67. I found the problem. You are using jQuery incorrectly in WordPress and this must have broken in the new update.

    See the following for how to use it correctly:

    To fix the existing code, I inserted the jQuery include directly into tptn_add_viewed_count:

    if ($activate_counter>0) $output = ‘jQuery.ajax(\”‘ .$tptn_url. ‘/top-10-addcount.js.php?top_ten_id=’ .$id. ‘&activate_counter=’ . $activate_counter . ‘&top10_rnd=\” + (new Date()).getTime() + \”-\” + Math.floor(Math.random()*100000));’;

  68. Sorry, the script tags got stripped but the point is, insert the script tag with the jQuery include immediately before the top10-addcount-js.php ajax call.

  69. Hi Ajay,

    I love your plugin! I use it on several of my sites and I think it’s one of the best visitor count plugins.

    I would like to suggest adding an extra feature. I have modified the plugin to include the Author Name and the Date of each post. It’s easy to add and I’m sure others would love the extra feature. I would be happy to send the code.

    And if you add it, I won’t have to update the plugin after each update πŸ™‚

  70. I would like to thank you for this great Plugin.

    Is there a way to shorten the article headlines to a maximum number of characters?

  71. Hello I just to update the last release but now I have problems because the limit results is not working I put 12 numbers of posts but in my webpage say 36!!!!!!!!!!! please help

  72. Hi. i update top 10 plugin to version and i see that you seperate in two columns on admin panel the values of totals and daily views.

    can you tell how i reduce the width of colums? it’s to big for me! i change the value ({ width: 100px;}) from here but nothing it’s happens.

    file : top-10/
    * Output CSS for width of new column.
    * @access public
    * @return void
    function tptn_css() {

    #tptn_total, #tptn_daily { width: 100px;}



  73. Very useful plugin, how do i use the WP View Count instead of starting from 1?. All my pages have 300+ views already.

  74. Ajay, you display the author Username in the widget. However, I’d like to have it display the author Name instead. In my case all posts show up as \”admin\” which is not very useful.

    I’m also wanting to turn off the count that appears after the author. Is there an easy way to do so for the widget?

    1. You’ll find turning off the count under Output Options: \”Display number of page views in popular lists?\”

      I’ll check out the option for the Author Name

        1. Unfortunately, I haven’t had the chance to look at any coding due to my day job eating up most of my time. I’m going to try to get to this ideally on the weekend.

          1. I’ll keep my fingers crossed. Our other solution is driving me nuts so I had to remove it and now both the audience and our contributors are both asking what’s hot on the site. Best of luck.

          2. If not having the author is something you can live with, then it’s a good solution to keep the trending now without the Author Name until I release the new version.

          3. I just had a look at the code again and I realised that by default the author nicename. I have now changed the code to show the \”display name\” which is what you set in the User Profile under \”Display name publicly as\”. I will be uploading a new version over the weekend.

  75. Thanks Ajay. There are three other minor things I’d like to see if possible:

    1. A space after a thumbnail as the text rides right up against the right side of the thumb.
    2. The option to change the text that appears with showing the author. I can manually edit this but that means doing so with each build. Now it says, \”Posted by\” where we much prefer simply \”by\”.
    3. The option to set a vertical alignment for text next to thumbnails. Now you align bottom. We’d like align center.

    Hopefully these are simple options and can be supported. I understand if they don’t fit your plans.

    1. For 1 and 3, this can be done with CSS where you add padding /margins as necessary.
      Regarding point 2, I’ll put that in the next version.

      I am planning a premium version of the plugin that will allow for more customisation options than now.

    1. It’s been live for quite a few days now. Don’t you see the update notification? If so, you should try to do a manual install directly by downloading the plugin.

      1. Yep. Thanks. This issue alerted me to a MUCH bigger issue that we’re crazed over now. None of our plugins or the core WP is auto-updating. Thanks for the response.

  76. Hello Ajay,

    I have a few questions about Top 10. Hope you will answer them.

    1. In System Health services in WHM (Top) I have noticed that Top 10 very often use about 50% of CPU resources. How can I minimize using CPU resources but not disable great Top-10 plugin?

    2. What is the mean of \”Enable Daily stats\”. If I disable this option (uncheck) will Top 10 continue with counting every visit?

    Generally, what you advice me about using Top 10 counter?

    I am using Super cache plugin.

    Thanks in advance,

    1. Are you noticing a serious issue with the cpu load. Top 10 currently is heavy because it loads lite version of WordPress for adding each count.

      Disabling the daily option will help the load but no longer given you daily stats.

      I suggest disabling \”always display latest count in list\” since it bypasses super cache which again increases load.

  77. Hi Ajay, Earlier you had total views and Today’s views combined into one and now they are separated. It takes more space now while viewing the posts/pages. Can you provide an update and make it like before.

  78. I’m using this plugin since couple of days, just for test and future regular use.
    So, I’m glad, but stil comapring with an another similar plugin.
    So, I have 2 questions:
    1. What means daily basis: from 0.00 to 24.00 in a calendar day or just for the past 24 hours?
    2. I would like to use the widget to show my readers the Top 10 articles in every cathegory/rubric. Is it possible and how?

    1. 1. It’s 0 to 24 not last 24 hours because the amount of data that would have to be saved for last 24 hours would have to be huge
      2. By default all categories are pulled up for the list of posts

  79. Thanks for explaning the period.
    But for the second part: may I in one category of my site to put the Top 10 widget to show extract only most fiewed srticle for this category ID, for another one – another etc.?

  80. Feature request: Please make it possible to display a popular post’s taxonomy before/after its title in the widget. Thank you for this great plugin!

  81. I would simply like to control the font family and size of the linked items listed in the widget. I have looked at all your documentation, but couldn’t figure it out from there. Can you give me a hint? Thanks!

  82. Thanks for providing a great plugin.

    Yesterday, I made the update to the new version, and I noticed a change to views on WP admin panel, from two columns now to three. But the views are a repetition, so it seems like having an extra column is just stealing space from the post titles which are now shrunken in width and difficult to read.

    One of the best features is the total and daily views, but one of each would be sufficient. Is there some way to keep just the two, instead of three columns?


      1. Thanks Ajay, now it solves my purpose of not crowding the post titles page. I have disabled total views and today’s views….The “Views” still gives me the same information in just one column. Thanks once again.

  83. Hi Ajay, I’d like to add comments_number to the output, is that possible? I’ve copied all of the instances of show_author in the plugin in order to include it and it’s showing up in the Admin correctly, I can select it fine but I can’t seem to get it to output on the front-end with this:

    if ($show_comments) {
    $output .= ‘ ‘.(comments_number( ‘0’, ‘1’, ‘%’ )). ‘ ‘;

    Any help would be most appreciated πŸ™‚

  84. I would like to thank you for this great plugin… by the way, are you using the title of the post to calculate the stats or the permalink? Some of my posts adds videos/pictures or updates to old posts and repost them with an updated title… (example: \”New Friends\” post becomes \”New Friends – updated with friends from recent trip\” but the permalink is still \”new-friends\”) … it would be nice to still count old stats even with new title..thanks

    1. The plugin uses the post ID to track the posts. So it doesn’t matter if you change the permalink or the title, the stats relate to the post ID which is unique

  85. Meredith C. Bullock

    Hi Ajay! Just downloaded your Top 10 plugin and need to have the widget show only on the blog page. The blog page itself is full-width, so I’ve inserted the widget into the footer widget. Can you please help me only show the widget on my blog page. Thanks!

    1. Hi, please create a new topic in the support forum along with your website address and which page you’re trying to display the widget and I can take a look

  86. Hi. I have a multilingual version of my site (based on Polylang plugin) and i want to show a different version of widget on different language section of the site. The selection must be by categories. Unfortunately Your plugin can exclude categories only in general, so could you please add in the next version the option to exclude categories by slug or ID in widget? Thanks!

    1. The widget, by default, is the same across the site. Are you using some kind of widget logic plugin to show different versions of the widget?

      1. Hi. Now I’m using one widget for both language version but it’s not very good, so I want to separate its (use one widget for one language version, selection by categories). Polylang plugin creates special options for widget area, so you can choose in what language version one or another widget would be show.

    1. Adam,

      I’m investigating this. There appears to be a problem reported by several users, but I haven’t been able to clearly replicate this one.

  87. (delete the previous one)

    after the V2.X.X the plugin doesn’t work correctly, the Total Views counter some times shows only 1 views, while todays views counter, shows normally.

    also some times, the Ξ€otal Views counter hang in a number ov views, and does not increase, as many times someone read the article. i had to go back to version, and this rollback, screw up the tables of plugins, because the total views counter, reset it, when someone get in to post.

    so, i delete the plugin and i missed ALL VIEWS on wp_top_ten and wp_top_ten_daily tables on my database.

    1. Uninstalling the plugin cleans up after itself.

      I’ve released v2.0.3 which fixes many bugs.

      If you’re continuing to face issues with v2.0.3, please raise a query in the support forums on since it is much easier for me to provide support there rather than via the comments here.

  88. Just updated to 2.0.3 and I lost all of my previous views on my Dev server. Curious whether these views can be reclaimed, or whether every update wipes out your view archives.

    It is really nice to be able to see the top articles change compared to all time articles on the site.

    1. The updates do not delete views. Could you please check your database and see if these still exist in wp_top_ten table.

      To get back the views, you need to look at one of older backups of the site, before the upgrade. It should be in the wp_top_ten table and wp_top_ten_daily table

  89. Is there away to set the total viewed times, so it will pick up all the previous views from the past year or so from my stats? I have some posts that have been viewed 5000 times in one day, so I don’t really want the view count to start at Viewed 1 time. πŸ™‚

    1. Marti, I’m not 100% clear on what you’re trying to display? %overallcount% displays the count across all your posts. If you’re always seeing Visited 1 times, there could be a tracking issue. Please create a support ticket at the WordPress support forums for me to take a look including your site details.

  90. Hello,

    I’ve this theme feature pre-installed on my homepage, that shows total views to site, but its initial numbers are misleading. Have look at – , it shows views with every post listed. Can I improve that feature using your method? Or maybe replace it?

  91. If I have a regular blog and a separate blog with a custom post type, is it possible to show two independent Top 10 lists, with only regular blog posts in the blog and custom posts in the custom post type blog? Thanks.

Comments are closed.

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.