Showing yearly stats
-
Hi Hector,
Right now I’m getting the yearly views (including the removal of the comma for numbers above 1000) with
$a = wpp_get_views( get_the_ID(), 'yearly'); if(preg_match("/^[0-9,]+$/", $a)) $a = str_replace(',', '', $a);
I have added the yearly cases in wordpress-popular-posts.php. It all works well, until your next update of course.
Is there a better way to add the yearly case?
https://www.ads-software.com/plugins/wordpress-popular-posts/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Showing yearly stats’ is closed to new replies.