Thursday, November 9, 2006

ezCount Plugin improvement

I noticed that there is a mismatch of count from the plugin ezCount. The simple recent comment plugin returns 3 comments as you can see in the sidebar but the ezCount plugin returns 5 Nos of comments. What went wrong is that there are 3 comments and 2 pingbacks from my other site.

Now to correct the error I added below to the ezCount plugin


$s = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1' AND comment_type=''";


The comment_type='pingback' is required if I want to return number of pingback. I'll later on add a new argument 'pingcount' to this plugin to return number of pingbacks.

No comments:

Post a Comment