WP-PostViews插件使用方法
1.页面使用
下载安装插件之后,在blog中你想要展现统计数的地方插入以下代码即可。
- < ?php if(function_exists(‘the_views’)) {the_views();} ?>
2.widget使用
对于支持widget的wordpress的主题来说,激活WP-PostViews Widget之后,拖拽到侧边栏合适的位置即可,对于不知道widget的主题,使用以下语言进行调用。
- < ?php if (function_exists(‘get_most_viewed’)): ?>
- < ?php get_most_viewed(); ?>
- < ?php endif; ?>
下载及说明
评论(3)
一朋友也写了一篇这样的文章 不妨去看看 http://www.stuseo.com/index.php/wp-postviews-installation-guide
一朋友也写了一篇这样的文章 不妨去看看 http://www.stuseo.com/index.php/wp-postviews-installation-guide
一朋友也写了一篇这样的文章 不妨去看看 http://www.stuseo.com/index.php/wp-postviews-installation-guide