WordPress:WPMU Functions/get sitestats

来自站长百科
跳转至: 导航、​ 搜索

Useful for getting site stats.

You can post stats in your theme sidebar.php by pasting this snippet.

Just paste this code in your theme's sidebar.php

<?php
<h2 class="storytitle">Site Stats</h2>";
    echo "There are currently ".$stats[ 'blogs' ]." blogs running on this server and ".$stats[ 'users' ]." users.<br />";
?>

Cheers! --Devportals 03:45, 21 June 2008 (UTC)