March 27th, 2007
WordPress Plugin: Daily Top 10 Posts
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 | Twitter | FacebookPosted in Wordpress Plugins


248 Comments
Gary O said...
Great plugin. Is it possible to add a function which only displays todays count. I use another plugin for today counts and don’t want to loose that count. I’ve tinkered with the code to modify the “todays_overall_count” function to only display todays count.
Regards
Mar 27, 2007
Gary O said...
Please edit my comment – line 2 “today” should be “total”. Sorry!
Mar 27, 2007
Blogie said...
i’ll give this a try, drew! i was actually wondering about yuga’s views counter sometime ago. thanks for this!
Mar 27, 2007
Josette said...
Hi there! I think this is a great plugin but I’m having trouble inserting the widget into my sidebar. Can you help please? Thanks!
Mar 28, 2007
Andrew said...
@Josette: I see that you have two sidebars. Just go to Presentation > Theme Editor and click on the appropriate sidebar file where you will insert the widget code.
Mar 28, 2007
Jeff Freeman said...
Is there a way to track visitors rather than hits? i.e. some way that hitting refresh won’t increment the view count?
Mar 29, 2007
tricky said...
hi,
is there any way to make this work for all time posts, not just today?
thanks
Mar 29, 2007
Josette said...
Hi Andrew, won’t I need to enter something like this:
{Box Title here}
{your content here}
Mar 29, 2007
Josette said...
I’m sorry. I’m not sure if you were able to see this code in my previous comment!
{Box Title here}
{your content here}
Mar 29, 2007
Andrew said...
@tricky: It already works that way. Please read the entire post to find out how.
@Josette: Yes that’s exactly how you should insert it. Are you on Firefox? The instructions above don’t appear correctly in IE. Better if you read the readme.txt file included in the download.
Mar 29, 2007
hoaihung said...
wow, its a good plugin. my blog need it. thank you very much.
before, i use hightest rated, but your plugin is a best choice for me.
http://www.woim.net
Mar 29, 2007
Andrew said...
@Jeff Freeman: I’ve come up with something that comes close to that, although it depends on sessions. I’m still testing it. I’ll release it when it’s stable.
Mar 29, 2007
Josette said...
OK! I’ll keep trying. Thanks!
Mar 30, 2007
L.A said...
Hi. We sent you the e-Ticket for the Philippine Blog Awards 2007. Please show this at the registration table. You will then be given two entrance tickets: one for you and another for your guest. If you have not received your e-Ticket or have any questions please email philippineblogawards [at] gmail [dot] com. Best of luck to you and your blog. See you there!
Mar 30, 2007
Michael said...
I use widgets for both sidebars. I was able to create a widget for this plugin using another plugin from http://hongkiat.com/blog/execute-php-in-wordpress-post-page-and-widget-sidebar/
Mar 31, 2007
hoaihung said...
your plugin has bug.
this function is error:
function todays_date()
and, i replaced all code on this function below:
function todays_date() {
$cdate = date(‘Y-m-d’);
return $cdate;
}
i worked.
this plugin will not work with 04-02-2007 (m-d-Y).
http://www.woim.net
Apr 2, 2007
Jaypee said...
Cool plugin! Too bad I can’t use it since I’ve been using the Top 10 plugin for quite a while now. Anyways, good job! Looking forward to other upcoming plugins from you.
Apr 3, 2007
Richard said...
Hi,
First, I wanted to thank you for this plugin.
It’s all working great except for the single.php file.
When you visit a post for the first time, you get this error :
Warning: Missing argument 2 for todays_count() in wp-content/plugins/dailytop10.php on line 164
Any help ?
Thanks
Apr 3, 2007
Andrew said...
@hoaihung: Thanks! That was among the errors that I already fixed.
@Jaypee: I’ll come up with something that will still allow you to keep the old plugin.
@Richard: I’ll look into that error. Check back for updates on that.
Apr 4, 2007
Michael said...
I have the problem with single.php as well.
Apr 6, 2007
Hong Kong internet marketing said...
That’s a nice plug-in. Daily Top 10 Posts plugin gives information about readers. I found that there a lot lot of site analysis software, but I haven’t found a really great blog-oriented anaylysis software. I am gonna download this, hope it will be the great plugin.
Apr 9, 2007
MInTheGap said...
I get the same warnings that Richard gets, but only on the first time a blog post is accessed. After that it works fine. Looks like a problem when there are no recorded views?
Nice plugin, though!
Apr 10, 2007
Gary O said...
Is it possible to offset the “todays_date” function so that blogs hosted at a different time zone can have the daily count reset at the users time zone.
My blog is hosted on a server in Dallas US, but I’m in Australia. My daily count resets at about 2.00pm my time which is 12.00am Dallas US time. (Not sure exactly of time zone difference but you get the drift of my problem).
Any ideas on a solution?
Gary O
Apr 16, 2007
Guarana said...
Here I had the same problem described by Richard and others guys.
Apr 25, 2007
DG said...
Andrew, First of thanks for the nice plugin, you can see my review post here.
Is it possible for you to add additional functionality to this plugin to let it display over all top viewed posts & pages?
Advice please.
DG…
http://www.ditii.com
Apr 27, 2007
mbc said...
We are also experiencing the Richard’s issue.
Note also that the sidebar widget does not seem to update unless todays_count_widget is used in the post. If we don’t have todays_count_widget in the post, the count does not seem to be updated.
May 2, 2007
Tjäna pengar på nätet said...
Hi,
I like your plugin but experienced the same error that others noted when visiting a post for the first time.
Warning: Missing argument 2 for todays_count() in wp-content/plugins/dailytop10.php on line 164
To rectify this I modified your plugin as follows on line 164:
// $show_today = todays_count($postnum);
$show_today = todays_count($postnum, $unique);
I also noticed another slight bug. If a post is deleted, it will still show up in the top ten lists even though it no longer exists. This is a problem for me, because I have users who may add a post and later delete it. I created the following lines to fix it.
add_action(‘delete_post’, ‘removal_function’);
function removal_function($postnum) {
global $wpdb;
global $table_name;
global $table_name_all;
if ($postnum) {
$wpdb->query(“DELETE FROM $table_name WHERE postnum = ‘$postnum’”);
$wpdb->query(“DELETE FROM $table_name_all WHERE postnum = ‘$postnum’”);
}
}
Thanks!
May 7, 2007
R2D2.0 said...
is it possible to display the “today’s views” top ten posts in the sidebar, but don’t display anything in the single page of each post?
I tried it but seems not working ;(
May 11, 2007
yhurg said...
Andrew,
The plugin looks like a winner. I installed it on obar.php. That shouldn’t be a problem should it? At this point it does not appear to be picking up the posts I click. Maybe when others do that will change. If possible, would you visit my blog to see if the display seems normal to you? It’s on the left just beneat pages. I inserted Step #4 from your instructions.
Thanks,
-Ryan
Jun 5, 2007
Brian Turner said...
This is a superb plugin – many thanks for that, and hope your allergies subside – suffering myself here while coding.
Jul 3, 2007
nbeyond said...
A nice plugin. Thanks.
Aug 7, 2007
Rolando said...
Very cool, thanks!
Aug 25, 2007
Richard B. said...
Great plug-in. Up and running…just one thing. As mentioned in another post is there a way to stop displaying the number of views?
The sidebar displays the ‘Overall Top Posts’ and would prefer only the title to display and eliminate the (NN views) part.
Sep 12, 2007
Richard B. said...
Found the answer. In the dailytop10.php file there is this line of code:
($postcount views)\n”;
Change to this:
\n”;
Sep 12, 2007
Mike Panic said...
Great plugin!
I have it installed in the sidebar of my blog (link in my name) – however I can’t get the “2 Views” to not show up in the sidebar. By default it looks like ‘Views’, I’ve set it to ‘”‘ and just about every other configuration I can, still can’t get the “2 Views” to not follow the link to the article. Please advise.
Sep 15, 2007
soobrosa said...
hm, I’ve installed the plugin ,but no matter what I do I always get “No posts viewed yet.”
Sep 29, 2007
hot celebrity photos said...
i’m taking an error
on
246. line
Warning: Missing argument 6 for todays_overall_count() in /home/hotceleb/public_html/wp-content/plugins/dailytop10.php on line 246
Oct 3, 2007
Rita said...
Thank you for this plugin, in sidebar everything is fine, but I have an error on single.php:
Warning: Missing argument 6 for todays_overall_count() in /home/hotceleb/public_html/wp-content/plugins/dailytop10.php on line 246
Any idea how to solve this?
Thanks,
Rita
Oct 7, 2007
Rita said...
I have the solution for the argument 6-Problem!
The right tag mus have ,” after the ’0′(sorry, I already translatet into german, but you can see it anyway):
ID, ‘Insgesamt ‘, ‘mal besucht, davon heute’, ‘mal.’, ’0′,”); ?>
Oct 7, 2007
JC said...
Too buggy to use. Sorry.
Oct 16, 2007
Lisa A said...
Really basic question. How can I change the text size and colour?
Nov 11, 2007
LaLindsey said...
I’m trying to customize your plugin a bit to work with a site I’m creating, where I need a custom value of a post image to display with the post title.
I’ve explained it better here, so I don’t clutter up your comments with the code:
Nov 18, 2007
Nate said...
I have been using this plugin for a long time and it’s fantastic, nice work on it.
However, I recently switched web hosts and they’re in a different time zone now. I am in New York state on Eastern time, the web host is in Utah on Mountain time. I cannot get the daily post counts to reset on Eastern time. Is the OFFSET variable supposed to be set according to the host or according to my location? I want them to reset on Eastern time. I have it at -5 for Eastern but they’re not resetting at the right time. What should it be set for?
Dec 8, 2007
Nate said...
I have the OFFSET at -5 for Eastern time, but now I see it’s still resetting on Mountain time which is -7
It appears the OFFSET isn’t functioning for me. I have 0.3 on a WordPress 2.3.1 installation.
Dec 9, 2007
mbd said...
Error : No posts viewed yet.
How can I do? Where am I wrong?
Jan 7, 2008
pavs said...
Ok just dropped by to say that I solved the “line 246″ problem mentioned by others and the soltion is not what “rita” mentioned above. If you use the solution provided by “rita” above it will break you wordpress (undoing will fix it). The solution is very simple. In the readme file the code ends like this: [ '0'); ?> ] in single.php, but the actual code should end like this : [ '0, 'show'); ?> ] the readme file doesn’t mention “show” part at the end. adding this fixes the problem. However the author did mention it on the above post ( which is barely readable as all single qoutations looks like &apos, I wonder how the author missed it). Anyways, I am thankfull for the script and to show my appreciation I had to show the solution to problem which I eblieve will affect everyone who is following the readme file.
On a side note I would like to know how reliable is this plugin in terms of accurate hits count. The reason I am asking is because I am in the process of hiring writers for my blog network, whom I would like to pay by visit counts on their posts (ie 1000 views = $2, like gizmodo pays to it’s writers). It is important for me to have a full-proof view counting system so that the view-count cannot be artificially inflated to get paid more. yes I have changed the value from ’0′ to ’1′, to track unique sessions. Is that all I need to stop any scams?
Thanks for any help and thanks again for the plugin.
Have a nice day!
Feb 6, 2008
Andrew said...
@Pavs: Hi, I’ll see if I can help you with your request by next week. Sorry, been busy.
Feb 7, 2008
pavs said...
Hi andrew, Thanks for willing to look into it for when you have time. I really appreciate it. Is there any way possible for me to contact you by e-mail? You see my whole project (because of it’s nature) depends on this custom script. Without this script (or something similar)I cannot go forward with my work. I am willing to compensate you financially, if you want for this work as soon as possible for you. Again, I know you are busy and I really appreciate it. Please drop me an e-mail or let me write to you.
Thanks.
Feb 7, 2008
Dexter | Techathand.net said...
Is it possible to put nofollow tage on all this Top 10 list.. That links to my pages
Feb 20, 2008
pavs said...
Does this plugin work with wp-cache? or wp-supercache?
Feb 20, 2008
Marcus said...
I wanted to find a way to make the top 10 daily only count recent posts. I found this solution, thought I’d share it in case anybody else is trying to do the same thing.
10) : ?>
Feb 26, 2008
heinrich said...
Hi, i have this in my sidebar, showing a number or 10 entries, is it possible to have more entries to show? i would like the list to be long, lets say about 20 or 30 entries showing as “top 50″ or whatever, where can i change the setting for this?
Mar 10, 2008
Ash said...
Thanks for the plugin.
Incase anyone is interested, I have this running okay on a 2.3.3 install.
Will be testing it on a 2.5 shortly.
Apr 5, 2008
Ash said...
Works a treat with 2.5 aswell.
Apr 5, 2008
Andrew Simone said...
This is a fantastic plugin. I am trying to get it to jive with the look in my archives. Is there any way I can have the todays_overall_count_widget to display with a simple “br/” function instead of a “ul” or “ol”?
I tried tweaking the code with my limited knowledge but couldn’t quite hack it.
Apr 9, 2008
stefano said...
is it possible to filter the daily top 10 excluding certain category?
Apr 11, 2008
Jim said...
Very nice plugin, i added this to my site and it works perfectly, really easy to modify as well. Good work m8!
Apr 14, 2008
JMD said...
I do not have the single.php file in my theme? I only want to display the most popular posts, on my blog. Will this work without installing the code in the single.php file which I do not have on my theme.
May 3, 2008
JMD said...
I get the “No posts viewed yet” message after installing the plugin to the sidebar, to view the “Top 10 Posts” of the day. I do not have the single.php page, so obviously did not install the code into there? Is that code needed for the sidebar widgets to work?
May 3, 2008
simonkoleznik said...
@JMD: put into index.php, right after and it will work. It does for me.
May 6, 2008
Greener Pastures said...
I love this idea!, and I have it up and running. The problem I’m seeing is that the counts don’t agree with my “Blog Stats” from WP. What time do your counts start? Do they go for a 24 hour period? Could you tell us a little more about it? Is there a way to increase or decrease the number of items listed?
Thanks, again, for a great plugin!
Lisa
May 8, 2008
Jeremy said...
Is there anyway to have the links contain rel=”nofollow” so that on other pages of the site the pages will only be returning page rank to the front page and not to all the pages on the “top posts” pages?
May 10, 2008
TDG said...
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?
Thanks
May 12, 2008
yoichi said...
Hi,
Thanks for a great plugin.
But I have one problem.
The number of views i.e. (XXX views) are not showing up in the sidebar. The title is there though.
What can I have done wrong?
Cheers
May 19, 2008
wael said...
when setting the unique views on single.php to yes it’s not working. still whenever i refresh the page the counter increases. I am using wordpress 2.5.1. is there any fix for that?
May 21, 2008
Danu said...
thanks for plugins,
this is really cool…
May 30, 2008
Lindsey said...
Love the plugin, but I’m wondering if there is a way to hide the views count in the “top posts overall” sidebar section?
Jun 3, 2008
Rita said...
Really great Plugin, thank you.
Is there a possibility not to show posts of a special category in the top-ten-list?
Thanks
Rita
Jun 12, 2008
K said...
Very useful. Thanks for this plugin.
Jul 21, 2008
Lisa- Add Site to DoFollow Directory said...
Is there any way you will fix the dailytop10 plugin ( which I LOVE!!!) to work with WordPress 2.6 ?
I am miserable without it working on a blog I upgraded.
If I could roll back to 2.5 i would n a heartbeat just so your plugin will work.
The problem is that it “breaks” the dashboard. and shows nothing after ” Today’s Top 10 Posts” header.
Thanks!
Jul 25, 2008
Curt said...
I’m looking for a fix for WP 2.6 also. It now shows old posts for the top posts of the day….
Aug 22, 2008
Elaine said...
I’m using wordpress 2.61 and it totally doesn’t show up at all… i saw your note to make sure we downloaded the newest version, but you put no link as to where..
Aug 23, 2008
Andrew said...
Hi y’all, please check the 0.4 update. Hopefully all the bugs brought up have been solved.
Aug 28, 2008
Jehzeel Laurente said...
awesome plugin! hurray! hehe
Aug 30, 2008
Martin said...
This plugin is remarkable but the download should be offered via the WP plugin Extend library with auto update.. congratulations!!
Aug 30, 2008
Lelia Katherine Thomas said...
Is there a way to exclude certain categories from being tracked?
Sep 2, 2008
Showbiz Intriga? Get it From Boy! said...
i don’t see any single.php in my theme..it’s single page is called index.php..is this correct?
Sep 6, 2008
Hannelore said...
Hi,
I have updated to wp vers. 2.6.2 and my favorite plugin does not work anymore. Has anybody else encountered the same?
(I have changed my theme and other plugins though)
Will “Daily Top 10 Posts” be updated?
Thank you very much. I am so sad.
Sep 20, 2008
philwebsupport said...
congrats po
Sep 22, 2008
styleanywhere said...
i would like to use the plug-in for my blog, but how do i do it? i am new in wordpress plug-in and installation…do i need to upgrade in order to use this?
thanks
Sep 22, 2008
cirilo said...
congrats
Sep 23, 2008
miah said...
wow congrats pla for winning the Best Plugin/Extension Award sa PBA.. hhmm.. matry din nga ito… wehehehe…
Sep 25, 2008
Gloria Karlos said...
CONGRATULATIONS from the TechScribe!
Sep 29, 2008
Jewelle said...
Thanks so much for this easy to set up plugin with clear explanation.
At first I downloaded the same plugin somewhere else and was stuck at “create table” and was thankful that I found yours. Not being good at coding, I was stuck with the placement and had to do loads of trial and error!
Oct 17, 2008
Michael said...
Time offset doesn’t work for me in WordPress 2.6 or 2.7 beta. I’m in South Australia but the server is in the US and the plugin starts counting a new day at 3.30pm!
Nov 21, 2008
Patrick said...
Now it can not work under the 2.7 version
Warning: extract() [function.extract]: First argument should be an array in /…/wp-content/plugins/dailytop10/dailytop10.php on line 400
Nov 23, 2008
Sindre said...
First of all, thank you for an excellent plugin. There’s only ONE thing I wish you would answer for all of us. I’ve seen someone ask a similar question about categories, but they didn’t get an answer. My question is: How do you exclude certain posts from being showed? I got a problem with at least 2 posts always being showed despite they are very old and irrelevant for the list. It’s probably some sort of fake traffic.
So could you please tell us: Is it possible to exclude certain posts (or even categories?)
Thanks in advance for your help
Nov 28, 2008
Michael said...
I think in 2.7 beta a count is registered for each view of posts appearing on the index page.
Nov 29, 2008
Jozzua said...
Nice plugin!
Dec 3, 2008
TechNald said...
thanks for making this plugin!
Dec 7, 2008
verter said...
Will the plugin work in 2.7?
Dec 12, 2008
Andrew said...
@michael: sorry about that. I’ll release a fix soon.
@verter: I’ve been told that an error related to the plugin occurs while you upgrade. But after that it works normally.
Dec 13, 2008
Brodie said...
I’m getting the same error in WordPress 2.7 as Patrick:
How do I fix this?
Jan 3, 2009
Andrew said...
Hi Brodie and Patrick, the error has been fixed.
Jan 5, 2009
Richard Holt said...
Great plugin, I’m using it here:
http://www.holster.co.uk/blog
I’ve already gone through the code and set it to only show 5 posts instead of 10, but how can I remove the ’3 views’ from after each post title?
Perhaps the plugin deserves an admin panel where these settings can be tweaked…?
Great work though, thanks very much, this was the only popular posts plugin I could find which worked straightaway…
®
Jan 5, 2009
Richard Holt said...
@SINDRE: Why not put the actual call for the plugin (the bit that displays the view numbers and actualy tracks the post) into some sort of ‘if’ statement, so it is only executed on a post within your chosen category? That way you can get the desired result without any modifications to the plugin itself…
®
Jan 6, 2009
John said...
Can you show the Top Posts for Today outside of the sidebar?
Todays_count_widget always show the “not post viewed yet” message when used in other templates
Jan 6, 2009
Gwyn Ann Ebol said...
Hi! Good day! Congrats for winning the 2008 Philippine Blog Awards.
I am Gwyn, a student from the University of the Philippines – Diliman. I, together with my partner, Roxanne Flora, is writing a thesis on blogging ethics.
We chose the winners of the 2008 PBA as the respondents for our thesis. Can we ask for your help by being one of the online interviewees? We hope to hear from you soon.Thank you so much.
Respectfully,
Gwyn Ann Marie S. Ebol
Jan 7, 2009
Andrew said...
Hi Gwyn, sure! You may contact me through my email address: andrew {at} alleba.com.
Jan 7, 2009
Rick Rottman said...
Nice plugin, but is there a way of not showing the view count?
Jan 8, 2009
Andrew said...
@Rick, yes. In instruction #1, change ‘show’ to ‘noshow’ to hide the counter.
Jan 8, 2009
Rick Rottman said...
@Andrew: Thanks for the info, but each post’s count is still showing up in the sidebar.
Jan 8, 2009
Alex said...
This plugin came recommended so I’m here to give it a try. Keep up the good work.
Jan 8, 2009
Gwyn Ann Ebol said...
Thank you so much. We will forward the questions within this week.
More power to you!
-Gwyn
Jan 10, 2009
David said...
Hi there,
Thanks for this great plugin. I’m using it on my site, although I’m currently going through the source code to try and set it to only show the top five in the overall visits widget. (Easier said than done given that I don’t know PHP!)
Jan 15, 2009
Lea said...
Hi Andrew
I’m having the same problem as Rick Rottman.
ID, ‘noshow’, ‘noshow’, ‘noshow’, ‘noshow’, ‘noshow’); } ?>
Placing ‘noshow’ or even ” doesn’t have an affect on removing the view counts.
I don’t know PHP, so I don’t have a clue as to what more I could do to remove the numbers from the list of post titles.
Jan 22, 2009
Andrew said...
Hi Lea, replace ONLY ‘show’ with ‘noshow’. Replacing all values with noshow will not work.
Jan 23, 2009
Lea said...
Hi Andrew
I’m sorry, but I’m back
Replacing ‘show’ with ‘noshow’ didn’t remove the counts from view on the widget either.
Today I found a error when I when to a page on my site. I’m wondering if someone else encountered this:
Warning: Missing argument 6 for todays_overall_count() in /home/oceanofp/public_html/wp-content/plugins/daily-top-10-posts/dailytop10.php on line 251
visited 3 times, 3 so far today
This is what is on dailytop10.php line 251:
function todays_overall_count($postnum, $visited, $times, $sofar, $unique, $show) {
I tried changing it to:
function todays_overall_count($postnum, $visited, $times, $sofar, $unique, $noshow) {
to match the ‘noshow’ I have in my single.php, but I got the same error after emptying my browser cache and refreshing the page.
I really like the concept of your plugin and would like to get it to work properly on my site, especially for using the widget for today’s top posts.
Jan 24, 2009
Andrew said...
@Lea: The correct code is:
< ?php if (function_exists('todays_overall_count')) { todays_overall_count($post->ID, ‘Visited’, ‘times’, ‘so far today’, ’0′, ‘noshow’); } ?>
as opposed to
< ?php if (function_exists('todays_overall_count')) { todays_overall_count($post->ID, ‘noshow’, ‘noshow’, ‘noshow’, ‘noshow’, ‘noshow’); } ?>
where strangely you changed all variables to ‘noshow’.
Jan 24, 2009
Lea said...
Hi Andrew
Yes, I had corrected the ‘noshow’ I had placed throughout the code after your first reply. I saw the error when I went to my site after correcting my alterations in the code.
I see that you have an update for the plugin, so I’ll update it and see if that works. Sounds like you made some allowances in it for code illiterates such as myself
Thank you for taking the time to respond quickly to my questions. Have a great weekend!
Jan 25, 2009
chickenmoo said...
is it posible to exclude categories from the top 10 ?
I put code on single so posts in all cats are counted
but some of the cats on my site are reference and should not be in the top10 list even if they are popular
thank you
moo
maybe add to new version
Jan 26, 2009
z0ro said...
we were hoping that the new version will allow tracking for single sessions only but still as the previous versions, changin 0 to 1 is not working..whenever the page is refreshed the counter increases.
Jan 26, 2009
bryan said...
hi..i have been lurking in your blog..very informative
Feb 7, 2009
Rade said...
Hello,
nice plugin, helped me a lot!
I have one problem maybe can be fixed. On one page i want to query post based on views. Want to show like 9 mostviewed posts, i’m already using this plugin ssuccesfully but want to add query_string before the loop so in that way i can use my loop design.
I hope this is possible,
thanks for answer!
Feb 11, 2009
mark said...
what if I just want to post the total no. of views and not the daily ones? how do I change the code.
thanks
Feb 13, 2009
Imre said...
Dear Andrew,
Today I installed your plugin.
I would like to show a list from the most viewed posts.
I use WP6.3 so I installed the daily top 10-4
I inserted the following code into the page (at the bottom of the page – you can see: “Legnépszerübb”:
Legnépszerűbb
I was click to some post but only:
“No posts viewed yet.” shown.
What would be the problem?
Many thanks, Imre
Mar 4, 2009
Imre said...
Ahhhh the code was missing:
{
Legnépszerűbb
}
Mar 4, 2009
Imre said...
So it is not working.(maybe this way)
Mar 4, 2009
Pinoy Top 10 said...
Thanks for the plugin. I used it on one of my blogs and I did not know it is from a Filipino.
I would love to see if you can add “yesterday” and “this week” stats as well so people can see the trending of the visits.
Thanks again!
Mar 21, 2009
游戏快报 said...
游戏快报是专业网络游戏站点提供业界新闻/资讯,新游,游戏攻略,网络游戏产业等信息的网络游戏网站;是一家专业从事信息和商务服务的网络游戏门户网站,全面整合游戏开发商、游戏运营商、销售渠道、网吧、玩家组织等各种资源,关注网络游戏产业的每一个细节!
Mar 22, 2009
Richard Holt said...
Hi there. I’m using your plugin on my site and I’ve found it to be excellent. I have 2 suggestions which would make it more useful for me:
1. Could there be a proper admin panel in the WordPress backend where some of the options could be easily set without the need to hard edit the plugin file? Specifically the number of posts listed.
2. Could there be an option to completely omit the ‘x views’ part of the output so it is simply an ordered list of posts without revealing view totals?
Every time I upgrade the plugin I have to make these changes manually to the plugin file at the moment, which as I have completely forgotten it from the last time, is a bit of a chore each time.
Thanks for all your hard work, it’s a great plugin.
Mar 24, 2009
d said...
hello – i’d like to sort the main list of posts by most viewed – how would i do this with your plugin?
Mar 27, 2009
21green said...
Great plugin, i’m wondering if it will work with WordPress MU?
I installed the plugin in the /mu-plugin/ directory and it showed up in the widget admin panel. However it displays “No posts viewed yet.” But i clicked several times on some article links. Do i have to wait a day, until the plugin starts to work?
Apr 6, 2009
Bryan said...
Hi, Andrew
Can it ignore registered user(i.e. adminstrator) view count?
May 11, 2009
Aks said...
Can u make a option/code for displaying the most popular posts for a particular category…
like i have to display most popular post of 1 category on one page and on some other page i want most popular post of other category..
Jun 4, 2009
Luke said...
Hey – Love the plugin! but is there a way to not display the (xx views) after the post name at all? So it literally just shows the postname per line and that’s it?
Thanks!
Jun 10, 2009
Luke said...
Hi, love the plugin! I’m wondering, though, if there’s a way to have it not display anything after the postname. So not have any reference to number of views at all? Thanks for the help!
Jun 10, 2009
John F said...
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
Jun 11, 2009
Luke said...
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!
Jun 11, 2009
JOHN F said...
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 ?
Jun 12, 2009
Andrew said...
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!
Jun 13, 2009
Leo said...
How do you restart the numbering?
Jun 30, 2009
Alex said...
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.
Jul 5, 2009
Iklan Baris said...
Thank for make this plugin. How to exclude post in display???
Aug 8, 2009
Rossi said...
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
Aug 16, 2009
mark said...
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! : )
Aug 23, 2009
Patrick said...
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!
Sep 6, 2009
Babaji M P said...
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.
Sep 13, 2009
Jim said...
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
Dec 2, 2009
zamaan said...
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?
Dec 11, 2009
Oreille malade said...
#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
Jan 16, 2010
Almaz said...
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.
Jan 18, 2010
Shayne Manne said...
Hi Andrew,
Great plug-in, thanks you for your hard work! Please help with this issue I am having on my site…
The visit count is grossly inflated. If I leave a post for a day without doing anything it shows between 60 and 66 visits. I have the tracking code copied on my home page post excerpts as well as the main post when clicked.
Please help!? If anyone can help I would be most thanksful!
I notice Almaz posted a similar finding (see below).
Thanks,
Shayne.
Almaz Says:
January 18th, 2010 at 9:37 am
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.
Feb 21, 2010
S said...
from my experience it does not work nicely with caching plugins. page views remain very less with cached pages as the content is picked from a static html file and the number does not increase.
also, there is no option to reset the page views
Jul 7, 2010
C. Enrique Ortiz said...
thanks for the plugin. is there any way to “ignore” a specific entry? I have this off-topic entry that keeps showing as top but it is masking the other on topic ones.
ceo
Aug 8, 2010