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. Code To Display Top Comments In WordPress Blog Hello All, In order to display top comments in wordpress...
  3. Code To Display Recent Comments In WordPress Blog Hello All, In order to display recently posted comments in...
  4. How To Display Comments on Index Page In WordPress? Hi, I like to display comments on index page rather...
  5. How To Display Popular Post In WordPress Blog Hi, Sidebar is a very good element of the blog...

Leave a Reply

You must be logged in to post a comment.