The MU forums have moved to WordPress.org

Display blog count (3 posts)

  1. moose123
    Member
    Posted 15 years ago #

    Hi,

    I'd just like to write out the number of active blogs on my WPMu site. I know I should be able to do this with the built-in 'get_blog_count()' or 'get_sitestats()' functions but I just don't know how to write them out to a page. I have a custom template calling the list_all.php plugin, which is where I'd like to have the blog count, too.

    I'm a PHP noob, so I appreciate any help.

    Cheers.

  2. mrhenry
    Member
    Posted 15 years ago #

    I haven't explored the functions you mentioned, but if there is a get_blog_count() function, then this should work:

    <?php echo get_blog_count(); ?>

    Place the code above to any template file and it should work.

  3. moose123
    Member
    Posted 15 years ago #

    Thanks for your help.

About this Topic

  • Started 15 years ago by moose123
  • Latest reply from moose123