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?