WordPress:WPMU Functions/get sitestats

来自站长百科
Xxf3325讨论 | 贡献2008年9月27日 (六) 10:48的版本 (新页面: 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 <pre> <?php <h2 class="storytitle"...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

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)