ezCount Plugin improvement

November 9, 2006

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: