Wordpress Plugin: Daily Top 10 Posts

Posted by Andrew on March 27th, 2007
Visited 81295 times, 42 so far today

If you want to know how much hits your posts are receiving on a daily basis, then the Daily Top 10 Posts plugin is for you. What it does is track the hits of each blog post for the current day and cumulatively at the same time. You may also display sidebar widgets containing a list of the most popular posts for the day and most popular posts overall.

Plugin Name: Daily Top 10 Posts
Description: Tracks the number of pageviews per blog post for the current day and cumulatively with options to display sidebar widgets for both.
Author: Andrew dela Serna
Version: 0.7
Notice: Compatible with Wordpress 2.7-2.8.
Disclaimer: This is a standalone plugin. If you have been using the Top 10 plugin, please be advised that using the Daily Top 10 Posts plugin means your pageviews will start from zilch.

INSTALLATION
————
1A. Wordpress 2.7-2.8 users, download the plugin from http://www.alleba.com/blog/wp-downloads/dailytop10.zip
1B. Wordpress 2.6 and below users, download the plugin from http://www.alleba.com/blog/wp-downloads/dailytop10.zip
2. Extract and upload dailytop10.php to 'yourserver.com/wp-content/plugins/'
3. Login to your Wordpress admin panel and browse to the Plugins section.
4. Activate The Daily Top 10 Posts plugin.

INSTRUCTIONS
————
1. Go to Admin Panel > Design > Theme Editor and click on Single Post (single.php).

#Find this line:

<?php the_time('F jS, Y') ?> //date

#Right after it, insert this line:
<br /><?php if (function_exists('todays_overall_count')) { todays_overall_count($post->ID, 'Visited', 'times', 'so far today', '0', 'show'); } ?>

#The line will display something like “Visited 300 times, 25 so far today” while viewing an individual post.
#You may edit the wording to suit your preference.
#If you wish to leave a word/phrase empty, use two quotes '' instead of just leaving it completely blank.
#Insert only one instance of this line to avoid double tracking.
#Change '0' to '1' if you wish to track unique sessions.
#Change 'show' to 'noshow' if you donot wish to display the post count information.

2. To display the number of views per post on the main index page, click on Main Index Template (index.php) in the Theme Editor panel.

#Find this line:

<?php the_time('F jS, Y') ?>

#Right after it, insert this line:

<br /><?php if (function_exists('todays_overall_main')) { todays_overall_main($post->ID, 'Viewed', 'times', 'so far today'); } ?>

#The line will display something like “Visited 300 times, 25 so far today” under each post heading
#while browsing your main page.
#You may edit the wording to suit your preference.
#If you wish to leave a word/phrase empty, use two quotes '' instead of just leaving it completely blank.

3. To add the sidebar widget, you may add it directly in the widgets panel of your theme (Design > Widgets). If your theme is not widget-ready, click on sidebar.php in the Theme Editor panel and do the following:

#Add the following code:

<h3>Top Posts for Today</h3>
<?php if (function_exists('todays_count_widget')) { todays_count_widget('views', 'ul'); }?>

#You may edit the word “views” to your liking (e.g. visits, pageviews or leave it empty '').
#The list format defaults to an unordered list (ul). If you would like an ordered list, change it to 'ol'.

4. To add the sidebar widget to show your most popular posts overall, you may add it directly in the widgets panel of your theme (Design > Widgets). If your theme is not widget-ready, click on sidebar.php in the Theme Editor panel and do the following:
#Add the following code:

<h3>Overall Top Posts</h3>
<?php if (function_exists('todays_overall_count_widget')) { todays_overall_count_widget('views', 'ul'); } ?>

#You may edit the word “views” to your liking (e.g. visits, pageviews or leave it empty '').
#The list format defaults to an unordered list (ul). If you would like an ordered list, change it to 'ol'.

Update: Now has the ability to track unique hits based on sessions. See instruction #1 for implementation.

0.2 Update: A serious flaw has been found that prevents the daily count from incrementing. Please download the latest version to correct this.

0.3 Update: Numerous bugs corrected. For more, read this post.

0.4 Update: Numerous bugs corrected. Added support for widgets. For more, read this post.

0.5 Update: Bugs in Wordpress 2.7 corrected. Check this post.

0.6 Update: CSS bugs in Wordpress 2.7 corrected. Check this post.

0.7 Update: Ability to exclude posts added. Tested to work on Wordpress 2.8 Check this post.

As always, I am open to your comments and suggestions. I hope you like this one! Thanks!

Bookmark at:
StumbleUpon | Digg | Del.icio.us | Dzone | Newsvine | Spurl | Simpy | Furl | Reddit | Yahoo! MyWeb

236 Responses to “Wordpress Plugin: Daily Top 10 Posts”

Pages: « 1 2 3 4 [5] Show All

  1. 201
    John F Says:

    I need your help to exclude few posts from recording the read count. I have few posts which has a read count which doesnot tall with Google analytics or Wordpress Analytics or other tools. The other posts are reasoanably tallied and i think these numbers in few posts are inflated read count.

    Would you please help me on how to exclude few posts ?
    I apprecite your help and plugin !

    Thanks

  2. 202
    Luke Says:

    Andrew – I read the previous comments and I think what I’m asking is the same thing everyone else is asking – I get how to change $show to $noshow in instruction #1 but how do you do it for the widgets, which is where I want to remove the information? Thanks!

  3. 203
    Los 72 mejores plugins wordpress | lo tecnologico Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  4. 204
    JOHN F Says:

    Any help on excluding a post from recording the read count would be greatly appreciated.

    Is there a way to not to display read counts only for one post ?

  5. 205
    Andrew Says:

    Hi all, I’d like to let you guys know that I am working on a new version of the plugin which incorporates exluding certain posts and pages from tracking. It should be ready in 1-2 days. Look out for an announcement. Thanks for your patience!

  6. 206
    Alleba Blog » Daily Top 10 Posts Version 0.7 and Wordcamp Philippines Says:

    [...] Daily Top 10 Posts Wordpress plugin has been updated and fully tested on Wordpress [...]

  7. 207
    Yaaahaaa 首页 » Blog Archive » 推荐几个日志相关的WordPress插件 Says:

    [...] Daily Top 10 Posts- 跟踪每篇日志T的页面访问量,然后可以在侧边栏显示一个Widget,可选项包括当天的热门日志列表,或是总的热门日志列表。 下载 [...]

  8. 208
    Leo Says:

    How do you restart the numbering?

  9. 209
    Alex Says:

    For some reason your plugin doesn’t work with my site. I added it to the left sidebar of my site so you can see, and I haven’t modified the code at all. Is this a problem with one of the other plugins I use or have I don’e something wrong? Any help would be greatly appreciated.

  10. 210
    Atheista - › The 3rd Philippine Blog Awards: One Blogging Nation Says:

    [...] AWARDS Best Blog Design: OctTwelve Best Plugin/Extension : Daily Top Ten Best Free Custom Theme : Una WordPress Theme Best Network Blogger : Juan Mandaraog Best OFW [...]

  11. 211
    Iklan Baris Says:

    Thank for make this plugin. How to exclude post in display???

  12. 212
    Rossi Says:

    Hello,
    I am using the starscape template for my blog and I don’t seem to be able to implement the code as per step 1 and 2 above. Any ideas, please?
    Thank you,

    Rossi Ignatova

  13. 213
    mark Says:

    Hi,
    That is a very nice and clean plug-in, but there are a few things that made me uninstall it.

    1. I wish the options were built right into the widget, and
    2. It logs my (admin) visits to each post as well, and I did not see a way around that. Needs filters.

    If you can resolve those 2 issues, it would be perfect.

    Thanks! : )

  14. 214
    Patrick Says:

    Hey, is it possible to make this plugin use javascript to the post views can be tracked even when using the supercache plugin which uses static .html files?

    I really like this plugin but i also want to cache my pages!

  15. 215
    Babaji M P Says:

    Hi Andrew,

    After going through few comments and googling, i still feel that an answer needs to be updated in the post (instruction #3 ) about removing view count in the widget.

    Thanks in advance.

  16. 216
    LOS MEJORES PLUGUINS PARA WORDPRESS | La Fanega Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  17. 217
    • Wordpress Plugins » Gif-Bilder.de - Blog Says:

    [...] 10 beliebtesten Artikel Mit dem Daily Top 10 Posts Plugin werden die 10 beliebtesten Artikel nach Views in einer Liste angezeigt. [...]

  18. 218
    Daily Top 10 Posts – plugin wordpress | Alter Ego Blog Says:

    [...] fiind faptul ca feed-back-ul prin comentarii nu exceleaza in cazul meu. Astfel am ajuns sa descopar Daily Top 10 Posts, plugin wordpress care tine evidenta accesarilor articolelor de pe [...]

  19. 219
    Convert Visitors to Loyal Readers by Making A Good First Impression | Blogging Pro Says:

    [...] Daily Top 10 Posts Wordpress plugin by Alleba.com [...]

  20. 220
    17 Useful Wordpress Plugins - Running Wolf’s Rant Says:

    [...] Daily Top 10 Posts: A useful plugin with 2 useful sidebar widgets by Andrew dela Serna. This plugin counts the amount of views for each post visited on your blog and makes the stats available for use in the 2 widgets. One widget displays your Top Posts for the Day, the other widget displays your Top Posts of All Time. This provides valuable navigation options to your readers and certainly increases the time spent by first time visitors on your blog. [...]

  21. 221
    Oloroko Blog – Los 72 Plugins más usados en Wordpress Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  22. 222
    Daily Top 10 Posts | 4 Wordpress Says:

    [...] Daily Top 10 Posts– A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general Comparte con tu comunidad [...]

  23. 223
    Powerfull List of WordPress Lifesavers Plugins « Noupe Says:

    [...] Daily Top 10 Posts- Tracks the number of pageviews per blog post for the current day and cumulatively with options to [...]

  24. 224
    PLUGINS DIRIGIDOS A LAS ENTRADAS | 4 Wordpress Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  25. 225
    Los mejores Plugins para WordPress « Practicas del Taller Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  26. 226
    Jim Says:

    Daily Top Ten posts is a great plugin! Thanks for the hard work. I do have one feature request. I was going to modify this myself but figured it was easy enough to just shoot you a message.

    It would be nice if there was a Checkbox option that would allow Daily Top 10 to record stats ONLY from web browser. Basically detect the “Mozilla” UserAgent and count only for that, that way you don’t get hits counted from search engines.

    Anyway, thanks a ton!
    -Jim

  27. 227
    zamaan Says:

    Hai andrew

    i have an small problem.

    i am using wordpress digital statement them.they install your plugin by default.if you check my sites footer, you can see your plugin is implemented on the right side (populaer today).

    now my problem is, your plugin not working half of the day.it works on the next half onliny.this is the situation daily. what could be the problem?

  28. 228
    iDESING Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  29. 229
    Los 72 mejores plugins wordpress | Todas las plantillas Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  30. 230
    Wordpress中很常用且很强大的78个wordpress插件 | 一起走过的日子 Says:

    [...] 查看 | 下载 2) Daily Top 10 Posts- [...]

  31. 231
    Oreille malade Says:

    #You may edit the word “views” to your liking (e.g. visits, pageviews or leave it empty ”)

    It doesn’t work… The word “views” is still here (I would like to leave it empty).
    See http://www.oreille-malade.com
    Could someone help me ? I’m getting mad…

    Regards :-)

  32. 232
    Almaz Says:

    Hi Andrew! i’ve been using this plug in, and i think it’s really good, but there’s just one thing I don’t like.
    When you are not logged in, and you refresh, it tracks everytime the hits, if you make a comment, it continues adding hits… i hope this could be fixed, may be tracking by ip’s or something like that. If anyone could help me i’d really appreciate it.

  33. 233
    Not Show Child Category - WordPress Tavern Forum Says:

    [...] – Adminstration Interface 3.2.1 by John Havlik (url) Contact Form 7 2.0.1 by Takayuki Miyoshi (url) Daily Top 10 Posts 0.6 by Andrew dela Serna (url) Google XML Sitemaps 3.2 by Arne Brachhold (url) SB Welcome Email Editor [...]

  34. 234
    Plugins de wordpress que te facilitarán la vida « MusaConfusa Says:

    [...] Daily Top 10 Posts – A partir del número de páginas vistas de cada entrada te permite mostrar con un widget las entradas más vistas del día o las más vistas en general. [...]

  35. 235
    وورد برس عربيا » Blog Archive » قالب وورد بريس المتكامل Digital Statement Says:

    [...] Daily Top 10 Posts . [...]

  36. 236
    مدونة محمد عياد Says:

    [...] Daily Top 10 Posts . [...]

Pages: « 1 2 3 4 [5] Show All

Leave a Reply

Test Your Geography | Home | Talking on Television Is NOT A Right