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

Top 10

Top 10

Overview:

WordPress doesn’t count page views by default. With over 130,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!

Features:

  • 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
  • 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?

Installing

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 top-10.zip 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

Screenshots

  1. top-10 screenshot 1

    Top 10 options - General options

  2. top-10 screenshot 2

    Top 10 options - Output options

  3. top-10 screenshot 3

    Top 10 options - Custom styles

  4. top-10 screenshot 4

    Top 10 options - Maintenance

  5. top-10 screenshot 5

    Top 10 options - Reset count

  6. top-10 screenshot 6

    Top 10 widget options

  7. top-10 screenshot 7

    Top 10 Meta box on the Edit Post screen

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.

ChangeLog:

1.9.10.1

  • Fixed: Initialisation error for new installs

View previous changes »

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 :)

License

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.

Languages

The following translations are available:

If you would like to provide a translation for the plugin or update any of the existing translations, please do drop me an email.

Downloads

Download Top 10 v1.9.10.1
Number of downloads: 178,731
Plugin page on WordPress.org

Comments

  1. Why does it say “Test:” before the count info? Can we turn that off or change it?

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

  3. you should add the function that prevents counting the admin’s visit as well :D

  4. George Serradinho
    January 31, 2009 - 6:52 pm

    Thanks for the plugin

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

  6. I will download :) But I won’t use it before you have a widget! That should be a top priority ;)

    • Yes. That is a top priority on my list as well. What use is a popular posts plugin if you can’t display them!

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

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

  8. Can you hide from top post the start page?

    Thank you.

  9. To clarify, the start page is “the static front page”.

  10. 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!

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

  12. 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! :D

    • That’s a fantastic idea. I got a release planned in the next few hours. I’ll put the feature in the TODO list :)

    • v1.1 now displays the popular posts in the WordPress Dashboard :)

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

  13. I have had the following stats plug in installed:

    Plugin Name: WordPress.com Stats
    Plugin URI: http://wordpress.org/extend/plugins/stats/
    Author: Andy Skelton
    Version: 1.3.5

    Can I use the same table or transfer the stats some how?

    Thanks!

    :) PS

    • I don’t think it is possible, because I believe that the stats are not stored on your server.

      • I have a list of the stats, can I manually change the table that you read from?

        Thanks for the speedy reply, BTW!

        :) PS

        • The table in which Top 10 stores its stats is wp_top_ten

          I’m not sure where the WordPress.com plugin stores its stats.

          • Where would I find the wp_top_ten table? I want to change it manually. Is this possible…sorry to be so clueless.

            :) PS

  14. 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 WordPress.com servers.

  15. 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?

    Thanks

  16. 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:

    Change:
    $sql = “SELECT postnumber, cntaccess , ID, post_type “;

    to

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

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

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

  18. 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!

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

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

  20. Hey Ajay,
    I would like to know if it is possible to add tags for each row. Currently it comes plain

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

    Do, blog and spread the word :)

  22. 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!

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

    Thanks!

  24. 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 :)

  25. 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! : )

    Karl

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

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

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

    Thanks

  27. Matt Parkinson
    April 9, 2009 - 3:59 pm

    Great work Ajay!
    Just wondered if you knew the quickest way to assign No Follow attritubes to the Top Post links for SEO purposes?
    Many thanks
    Matt

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

  29. Hey there!

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

  30. 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,
    Richard

  31. 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″.

  32. Kenneth Johnsen
    August 23, 2011 - 1:17 pm

    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)

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

    • 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

  34. 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: http://imageshack.us/photo/my-images/600/thumb10e.jpg/

    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.

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

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

  36. Would love to see a counter on the attachment (image) pages as well…

  37. 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
    Thanks
    Miranda

    • 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 :)

  38. I already installed this plugin & using it. It has some unique feature. I am enjoying it

  39. 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. :)

    • Lila, the plugin tracks hits on your pages. As you get hits, you’ll see the list being filled.

  40. 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: mysite.com/wp-admin/edit.php?page=tptn_manage&paged=30&daily=1&limit=10

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

    Thanks, Chris

    • Currently Contributors cannot modify posts:

      A quick fix is to move line 367 in admin.inc.php 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

      • 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’);
        }
        }

        • To this:

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

        • 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');
          }

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

  41. Thanks a lot for your plugin! :D
    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!

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

      • 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

        • 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

  42. 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?

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

  44. 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!

    • 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

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

  46. hello, how to remove the multiple counting of the visits?

    Thanks

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

  48. 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? :-)

    thanks

    • 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

  49. Hi, I’ve been using this pluggin for last 8 month. thanks bro for such a great plugin :)

  50. 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,
    Miranda

    • Miranda, if you don’t add the widget to your theme, then it shouldn’t display on your blog automatically

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

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

  53. 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?

  54. 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!

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

  55. 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?

    Thanks.

  56. Where can I find style of plugin sidebar popular list? I want to chsnge pre image style.

  57. 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! :)

  58. Is there a way to use Post-Types with this awesome plugin?

  59. 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?

    Regards
    Simone

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

  61. 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!

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

      • 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!

  62. 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?

    • 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

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

    Regards,
    Bobby

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

  64. And sorry forgot. The thumbnails aren’t getting resized. What could be the problem??

  65. 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!

    Regards,
    Rutger

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

    • If you delete it from the Plugins Screen in WordPress admin, it will delete everything from the database.

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

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

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

      May I ask how you are deleting the plugin?

  68. 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?

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

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

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

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

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

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

    • Malo, unfortunately, I am unable to reproduce this on my settings. Are there any more details on the error?

  73. I have applied it to my website, thanks again.

  74. 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?

  75. 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?
    Thanks

  76. Hi!

    I’m looking for a easy way to show the_date() in my Sidebar widget for each post along with total views.

  77. 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 |___________|

  78. 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?

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

      Easier for me to track there.

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

    • 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 WordPress.org repository.

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

  81. thanks it was very helpfull because i was using previously WP-posts it was not working correctly

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

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

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

  85. 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:
    http://matthewruddy.com/using-jquery-with-wordpress/

    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));';

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

    • Do you think you could drop me a line on this at me AT ajaydsouza.com with the correct code?

  87. 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 :)

  88. Thank you very much i find this plugin for long time.

  89. 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?

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

  91. Hi. i update top 10 plugin to version 1.9.8.2 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/admin.inc.php
    _________________
    /**
    * Output CSS for width of new column.
    *
    * @access public
    * @return void
    */
    function tptn_css() {
    ?>

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

    <?php
    }

    ________________________

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

    • There isn’t any interface to import views from other plugins. This is something I intend to add, but only in a premium version

  93. 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?

    • 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

      • Ajay, Any update on Author Name? That’s the main thing holding us back from being able to use the plugin on our site. Thanks.

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

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

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

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

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

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

  95. Ajay, when will 1.9.8.5 be live? This is the build we need to use it and you noted you submitted several days ago. Still no update notification however.

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

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

  96. 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,
    San

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

  97. 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.
    Thanks
    Sanjay

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

  99. 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.?

  100. 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!

  101. 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!

  102. 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?

    Thanks.

    • You can hit the Screen Options drop down at the top of your page and then uncheck either Views and/or the other columns

      • [email protected]
        February 17, 2014 - 2:33 pm

        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.

      • Fantastic. Thank you!

  103. kactuspieKatri
    March 3, 2014 - 2:58 am

    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 :)

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

    • 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

  105. Meredith C. Bullock
    July 2, 2014 - 11:59 pm

    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!

    • 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

  106. 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!

    • 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?

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

  107. Is it possible to display top 10 LESS popular post?

    • Not with this plugin. You could write your own function to tap into the database to fetch the least popular posts.

Leave a Reply