下载WP-PostViews插件:http://wordpress.org/extend/plugins/wp-postviews
然后按转
- Open
wp-content/pluginsFolder - Put:
Folder: wp-postviews - Activate
WP-PostViewsPlugin - Go to
WP-Admin -> Settings -> PostViewsto configure the plugin.
使用方法
- Open
wp-content/themes/<YOUR THEME NAME>/index.php - You may place it in archive.php, single.php, post.php or page.php also.
- Find:
<?php while (have_posts()) : the_post(); ?> - Add Anywhere Below It (The Place You Want The Views To Show):
<?php if(function_exists('the_views')) { the_views(); } ?>
本文介绍如何下载并安装WordPress插件WP-PostViews,以实现文章浏览数统计功能。具体步骤包括将插件文件放置到指定文件夹、激活插件及配置设置等。同时,文中还提供了在不同主题文件中调用浏览数显示的方法。
7339

被折叠的 条评论
为什么被折叠?



