#51767
Bartosz
Keymaster

Hi,

There is no one-shot function to do that. Or maybe there is – pvc_get_views
Please check it in the functions.php file in the plugin.

What you definitelly need to define there is the “post_type” parameter (and inclue all post types being counted).
Also I’d experiment with using the “views_query” with the “before” parameter set to today (or tomorrow’s) date.