用的avada主题,怎么设置让文章显示阅读数量? 安装了WP-PostViews 插件,但一直找不到地方调用。
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(); } ?>
Or you can use the shortcode [views] or [views id="1"] (where 1 is the post ID) in a post
上面是wp-postviews插件的说明。archive.php, single.php, post.php or page.php 这几个文件都找了,硬是没找到这句<?php while (have_posts()) : the_post(); ?>
求方法。
分享至微信