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





June 11th, 2009 at 6:50 am
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
June 11th, 2009 at 11:21 am
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!
June 12th, 2009 at 10:37 am
[...] 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. [...]
June 12th, 2009 at 1:13 pm
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 ?
June 13th, 2009 at 8:42 am
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!
June 15th, 2009 at 1:27 am
[...] Daily Top 10 Posts Wordpress plugin has been updated and fully tested on Wordpress [...]
June 17th, 2009 at 1:54 am
[...] Daily Top 10 Posts- 跟踪每篇日志T的页面访问量,然后可以在侧边栏显示一个Widget,可选项包括当天的热门日志列表,或是总的热门日志列表。 下载 [...]
June 30th, 2009 at 1:35 pm
How do you restart the numbering?
July 5th, 2009 at 8:04 pm
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.
July 11th, 2009 at 1:34 pm
[...] 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 [...]
August 8th, 2009 at 1:54 am
Thank for make this plugin. How to exclude post in display???
August 16th, 2009 at 3:15 am
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
August 23rd, 2009 at 7:56 pm
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! : )
September 6th, 2009 at 3:54 pm
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!
September 13th, 2009 at 1:39 pm
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.
September 16th, 2009 at 1:50 am
[...] 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. [...]
September 16th, 2009 at 5:38 am
[...] 10 beliebtesten Artikel Mit dem Daily Top 10 Posts Plugin werden die 10 beliebtesten Artikel nach Views in einer Liste angezeigt. [...]
September 22nd, 2009 at 12:24 am
[...] 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 [...]
September 25th, 2009 at 11:56 am
[...] Daily Top 10 Posts Wordpress plugin by Alleba.com [...]
October 5th, 2009 at 3:49 am
[...] 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. [...]
October 19th, 2009 at 11:15 am
[...] 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. [...]
October 20th, 2009 at 3:16 pm
[...] 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 [...]
October 21st, 2009 at 2:46 am
[...] Daily Top 10 Posts- Tracks the number of pageviews per blog post for the current day and cumulatively with options to [...]
October 21st, 2009 at 2:17 pm
[...] 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. [...]
November 18th, 2009 at 2:55 pm
[...] 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. [...]
December 2nd, 2009 at 7:12 am
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
December 11th, 2009 at 10:47 pm
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?
December 28th, 2009 at 10:38 pm
[...] 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. [...]
December 29th, 2009 at 5:25 am
[...] 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. [...]
January 13th, 2010 at 12:26 am
[...] 查看 | 下载 2) Daily Top 10 Posts- [...]
January 16th, 2010 at 10:52 am
#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
January 18th, 2010 at 9:37 am
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.
January 21st, 2010 at 8:20 am
[...] – 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 [...]
January 23rd, 2010 at 6:30 am
[...] 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. [...]
January 24th, 2010 at 2:17 pm
[...] Daily Top 10 Posts . [...]
January 26th, 2010 at 9:07 am
[...] Daily Top 10 Posts . [...]