I run a Wordpress store with Woocommerce. I want to display a top 10 sales charts of "recent" sales on a page.
I'm looking for a custom script / query to display a vertical list of the 10 products that sold the most copies in the last 30 days (like a current top sales charts). I would like to have it usable via a shortcode, so that I can display this top charts section anywhere on the store, and if possible in a widget.
The most important part is not the display / style, it's the query. It's very important that it only shows the best selling products in the last 30 days, not the best selling products "ever" (that is a standard woocommerce feature).