wp-postviews 点击统计插件试用说明
今天看到了 wp-postviews 这个文章点击统计插件
找了些资料后使用成功了。
我用的是 wp-postviews 1.50 WP需要2.8+
用 wp默认的default主题做个例子
进入WP后台的主题编辑打开index.php,找到如下代码段:
<?php while(have_posts()):the_post();?>
...
//显示文章发布日期
<small>
<?php the_time(__('F jS, Y', 'kubrick')) ?>
</small>
插入统计后的代码:
<?php while(have_posts()):the_post();?>
...
<small>
<?php the_time(__('F jS, Y', 'kubrick')) ?>
<?php if(function_exists('the_views')) {the_views();} ?>
</small>
2010/1/11 发布于 http://blog.charsky.cn/?p=169
浙公网安备 33010602011771号