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

    (@hcabrera)

    Hi there,

    To convert the views value into an integer (and your custom formatting), you’d have to use WPP’s filters to modify the output from your theme’s functions.php file.

    Here’s a sample code I posted for someone else not long ago that shows how to use WPP’s filters. The relevant part of the code that handles the Avg. views per day statistics is right below “// If sorting posts by average views“.

    Thread Starter rkase

    (@rkase)

    Hi,

    I’ll look that over to get a sense of how to do that. Although I don’t really know PHP, I think your sample code will be enough for me to get it working.

    Thanks for pointing me in the right direction.

    Plugin Author Hector Cabrera

    (@hcabrera)

    No problem. Please let me know if you need further help with that, I’ll be glad to assist you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change decimal styling of views per day’ is closed to new replies.