WP-PostViews插件使用方法

1.页面使用

下载安装插件之后,在blog中你想要展现统计数的地方插入以下代码即可。

  1. < ?php if(function_exists(‘the_views’)) {the_views();} ?>

2.widget使用
对于支持widget的wordpress的主题来说,激活WP-PostViews Widget之后,拖拽到侧边栏合适的位置即可,对于不知道widget的主题,使用以下语言进行调用。

  1. < ?php if (function_exists(‘get_most_viewed’)): ?>   
  2.    < ?php get_most_viewed(); ?>   
  3. < ?php endif; ?>

下载及说明

下载页面