Support » Plugin: WordPress Popular Posts » Adding Commas to Single Post View Count?

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding Commas to Single Post View Count?’ is closed to new replies.