newyorkcity
Member
Posted 6 months ago #
Right now I'm displaying the viewcount with <?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?>
http://d.pr/i/FSAr
I would like to add commas so that number could display as 65,821.. how do I do this?
http://wordpress.org/extend/plugins/wordpress-popular-posts/
Héctor Cabrera
Member
Plugin Author
Posted 5 months ago #
Hi there,
Try this:
<?php if (function_exists('wpp_get_views')) {
echo number_format( wpp_get_views( get_the_ID() ) );
} ?>
I will add this to the function in future releases so that it automatically outputs the views count with numeric format.