stats_get_csv
-
Hi.
I’m using stats_get_csv() function to show post views counter in single.php, it worked good for a long time.
But I can’t see no data last days, statistics in WordPress Dashboard is working correctly – I can see views for every single post.Here is my code:
if (function_exists('stats_get_csv')) { $args = array('days'=>-1, 'limit'=>-1, 'post_id'=>get_the_ID()); $views = stats_get_csv('postviews', $args)[0]['views']; } else { $views=''; }
I asked my hosting provider (https://wphost.me) about this issue – they told me they can’t see anything related with hosting
Can you please help me?
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘stats_get_csv’ is closed to new replies.