Wordpress users have thousands of themes to choose from. We hunt out the best of the best free and premium themes. You will find best of the best 2 columns, 3 columns, adsense ready, widget ready,
XHTML validated themes. Best themes for Wordpress powered blogs. Download quality and professionally designed Wordpress templates for free at BestWpThemez.com.
Here is the code to find out total number of approved comments on the blog:
<?php
$numcomms = $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = ‘1′”);
if (0 < $numcomms) $numcomms = number_format($numcomms);
?>
Thanks,
Shane G.
Popularity: 1%
This entry was posted
on Saturday, June 27th, 2009 at 5:27 pm and is filed under WordPress KB .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.