开发者 |
kentothemes
hasanrang05 |
---|---|
更新时间 | 2015年10月25日 17:29 |
PHP版本: | 3.7 及以上 |
WordPress版本: | 3.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[kpvc_single]
<?php echo do_shortcode("[kpvc_single]"); ?>
Anywhere on single.php or custom post type single.php
Also same way you can php code for bellow shortcodes
Display only today views count or hide total views count.
[kpvc_single total="no"]
Display only total views count or hide today views count.
[kpvc_single today="no"]
Display Custom text for today or total views count
Go "Kento Post View Counter Settings" page and add text for "Text For Today View" and "Text For Total View" and save.
How to use short-codes in loop or excerpt mode ?
To display views count manually via short-codes in loop or excerpt mode you can use short-code bellow
N.B. We have removed custom text adding feature via short-code you can do same this by saving custom text via "Kento Post View Counter Settings" page
Display whitout customize
<?php do_shortcode('[kpvc_loop post_id='.get_the_ID().']'); ?>
Display only total views count or hide today views count.
<?php do_shortcode('[kpvc_loop post_id='.get_the_ID().' today="no" ] '); ?>
same way you can hide total count by adding today="no"
Display Custom text for today or total views count
<?php do_shortcode('[kpvc_loop post_id='.get_the_ID().' ] '); ?>
Display post view counter number to your language
You can display post view counter to your language, please go "Kento Post View Counter Settings" page and "Numbers Language" box fill numbers as following 0,1,2,3,4,5,6,7,8,9
Like for Bangle: ০,১,২,৩,৪,৫,৬,৭,৮,৯
or for Arabic/Persian: ۰,۱,۲,۳,۴,۵,۶,۷,۸,۹
** Please do not change the numbers orders otherwise it will wrong result for post view counter.
How to display Geo Stats Via Short-codes ?
To Display GEO Stats on page or post.
[kpvc_widget_geo geo="city" width="500px" height="300px"]
parameter:
geo >> city, country.
width >> width for map area(use px or %).
height >> height for map area(use px or %).