If you’re interested, the following SQL will give you the top commenters on your own WordPress blog:
SELECT comment_author, comment_author_url, count( * ) AS c FROM wp_comments WHERE comment_date > date_sub( NOW( ) , INTERVAL 1 MONTH ) GROUP BY comment_author ORDER BY c DESC
And this chunk of code will give you the posts with the most comments made in the past month:
SELECT comment_post_ID , post_name, count( * ) as c FROM wp_comments, wp_posts WHERE wp_comments.comment_post_ID = wp_posts.ID AND comment_date > date_sub( NOW( ) , INTERVAL 1 MONTH ) GROUP BY comment_post_ID ORDER BY `c` DESC
User tags: "june photos"
What an honor to be mentioned in the most prolific commenters section!
I can only agree to your most popular photos section too.. although I think “Orange stripes and white clouds” should be att the number one spot.
Keep up the good work
/J
Written by
josef
on
July 01, 2007 at
1:20pm
Josef - you should include your email address when commenting so I don’t have to moderate your comment each time!
Written by
Donncha O Caoimh
on
July 01, 2007 at
2:36pm
Hehe. These sort of round up posts are getting more popular on other blogs and I promise I won’t do them more than once a month! They might help new visitors see some of what they missed over the previous four weeks too!
Written by
Donncha O Caoimh
on
July 02, 2007 at
1:09pm
Oooh, thanks for the SQL chunks to figure that stuff out. I thought about installing a plugin to do it, but I just don’t want to install any more plugins unless I really need them ![]()
Written by
Andrew Ferguson
on
July 03, 2007 at
11:44pm
or browse through some tags...
Urban Canon 20D irishblogs Cork Candid Photos Black and White Architecture Ireland Street People Irish photos Sky Cork Photos Sigma 10-20
Jump to comments