Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 230

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 300

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 301

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 302

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 305

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 308

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 311

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320
插件PostViews Plus – 理想社会

插件PostViews Plus

插件PostViews Plus是一个不错的插件,其基本功能是文章浏览记数,特色是可以区分机器人的访问次数。对版本的使用要求是wp 2.3 及以上,现在的版本是 1.1.13 。
官方下载:http://wordpress.org/extend/plugins/wp-postviews-plus/

使用方法:
1、显示文章浏览次数:
你想要显示浏览次数的页面(一般是 index.php 或 single.php )中的适当位置插入如下代码:

<!--p if(function_exists('the_views')) { the_views('次浏览', true); }-->

2、显示浏览次数最多的文章:
在你想要显示浏览次数的地方(侧栏或独立页面)插入如下代码:

<!--p get_most_viewed('post', 10, 0, true, false);-->

5个参数的说明:

'post':显示文章的浏览次数,而不是页面;
10 :最多显示10篇文章;
0 :文章标题的字数限制,0为无限制;
true :显示文章,若改为 false 则不显示文章;
false :不显示搜索引擎机器人的查询次数,若改为 true 则全部显示。

3、显示最近 N 天内的浏览最多的文章:
在你想要显示浏览次数的地方(侧栏或独立页面)插入如下代码:

<!--p get_timespan_most_viewed('post', 10, 30, true, false);-->

5个参数的说明:

'post':显示文章的浏览次数,而不是页面;
10 :最多显示10篇文章;
30 :显示30天以内的文章统计;
true :显示文章,若改为 false 则不显示文章;
false :不显示搜索引擎机器人的查询次数,若改为 true 则全部显示。

About the author

Add comment

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

By now163

Your sidebar area is currently empty. Hurry up and add some widgets.