WordPress �����������������ʾ

wangping
Thu, 03 Jan 2019 03:03:55 +0000
����

1���ڲ���������K���bWP-PostViews 2�����ղ���ĺ��鰲�b [crayon-690922 […]

1���ڲ���������K���bWP-PostViews

2�����ղ���ĺ��鰲�b

Usage
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
Go to WP-Admin -> Settings -> PostViews to configure the plugin.

3������ϣ���Զ����ҵ����������ӣ������޸�vim themes/twentyfifteen/content.php,���µ�3��


          <?php twentyfifteen_entry_meta(); ?>
<?php if(function_exists('the_views')) { the_views(); } ?>
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '', '' ); ?>


4������������ʾ�����½�β��������ʾ���ǡ�4 views����Ҫ�޸ĳ�����

��̨ ����-��PostViews-��Views Template���޸����ģ�弴�ɣ�