This site uses cookies from Google to deliver its services, to personalize ads and to analyze traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. Learn More

Displaying Number of Comments in your WordPress Blog

Displaying Number of Comments in your WordPress Blogthegeby.blogspot.com - Displaying Number of Comments in your WordPress Blog

<?php
$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
if (0 < $numcomms) $numcomms = number_format($numcomms);
echo "There's ".$numcomms." total comments on my blog";
?>

other source : http://pinterest.com, http://imgur.com, http://tutorial101.blogspot.com

0 Response to "Displaying Number of Comments in your WordPress Blog"

Posting Komentar

Contact

Nama

Email *

Pesan *