Could someone who speaks PHP please help me with this?
I’m using Nick Momrik’s “post-count” plugin to return the total number of posts on my site. With that, I’d like to calculate and display the average number of posts per day. In English, the calculation would be something like…
total number of posts = <?php mdv_post_count(); ?>
$from = Apr 19, 2005
$to = today
<?php mdv_post_count(); ?> / ($to - $from)
I want the result to be number_of_days as an integer.
- The topic ‘How to display average number of posts per day?’ is closed to new replies.