Hi,

Here is the code to display average number of comments per post in wordpress blog:

<?php
$avcomms = round($numposts/$numcomms);
?>
<?php echo “There is an average of “.$avcomms.” comments per post.”; ?>

Thanks,

Shane G.

Popularity: 1%

Related posts:
  1. Code To Display Total Number Of Comments Hi, Here is the code to find out total number...
  2. How To Display Popular Post In Wordpress Blog Hi, Sidebar is a very good element of the blog...
  3. Code To Display Top Comments In WordPress Blog Hello All, In order to display top comments in wordpress...
  4. How To Remove Canonical Links From Comments In Wordpress Blog? Hi, We can easily remove canonical/duplicate comments with the help...
  5. Code To Display Recent Comments In WordPress Blog Hello All, In order to display recently posted comments in...

Leave a Reply

You must be logged in to post a comment.