Return to Snippet

Revision: 35875
at November 15, 2010 02:31 by laurentzziu


Initial Code
<?php $numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); if (0 < $numcomms) $numcomms = number_format($numcomms); ?>

<?php echo "There's ".$numcomms." total comments on my blog"; ?>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress Total Number of Comments

Initial Tags
number, wordpress

Initial Language
PHP