stats_get_csv returning number of page views for all posts
-
Dear Experts,
I am using stats_get_csv to get number of post views for individual posts by passing the POST_ID. But, it is returning all post views:
Please help me, its already taken a long time.
Here is the function code I am using for this purpose :
function render_stats($post_id) {
$args = array(
‘days’=>-1,
‘limit’=>-1,
‘post_id’=>$post_id
);$result = stats_get_csv(‘postviews’, $args);
$views = $result[0][‘views’];
return number_format_i18n($views);
}The blog I need help with is: (visible only to logged in users)
-
You need to be at WordPress.ORG, not WordPress.COM for help with that version of the software.
-
They sent me here on wordpress.com :)
-
He gave you bad advice. We can’t even install plugins here. We cannot access the php in our blogs, or even the entire CSS stylesheet. We cannot help you.
-
Oh dear, I just need to show my fans no. of post views on each posts. And, its ruining my time from last many days. :)
Thank you.
-
-
- The topic ‘stats_get_csv returning number of page views for all posts’ is closed to new replies.