文章标签 ‘博客统计代码’

十二月 29th, 2010

博客统计代码

7 Comments, 学习, by admin, 8,909 views.

<div> <h3>博客统计</h3> <div> <p> 日志总数:<?php $count_posts = wp_count_posts(); echo $published_posts = $count_posts->publish;?> 篇</p> <p> 评论总数:<?php $comment = $wpdb->get_var(“SELECT COUNT(*) FROM …