How to get most viewed posts of specific time period
-
Hello,
I am using the post views counter plugin together with WooCommerce and I am trying to achieve the following:
Get
- the IDs (only) of the most viewed products
- of a specific product type and
- of a specific time period (for example last 2 weeks).
By using the
tax_query
argument together with thepvc_get_most_viewed_posts
function of this plugin, I can limit the result of this function to a specific product type.Is it possible to pass any query arguments to additionally specify a time period for these view counts? Moreover, is it possible to only output the post IDs instead of post objects?
Thank you in advance for any responses.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to get most viewed posts of specific time period’ is closed to new replies.