Codex tools: Log in / create account
Contents |
Returns and/or outputs information relating to the most active blogs hosted on this WPMU install based on number of blog posts.
Returns an array of arrays each representing a blog hosted on this WPMU install ordered by activity level. Details are represented in the following format:
<?php get_most_active_blogs( ); ?>
<?php
echo '<ol>';
get_most_active_blogs();
echo '</ol>';
?>
<?php
$most_active = get_most_active_blogs( 10, false );
foreach ($most_active AS $active) {
echo $active['domain'].$active['path'].' ('.$active['postcount'].' posts)<br />';
}
?>
(Devportals) I think it would be good to have another argument to ignore certain blogs, for example my client don't want to display main blog stats here :(