When we list tags we can get the count and even sort by count like this:
$tags = get_tags([ 'orderby' => 'count', 'order' => 'DESC', 'include' => $term_ids, ]);
But how can we get the count of posts for the last week for example?
I would like to get the
"trending tags" last week, but can not find any nice way to get this done in WordPress without making my own SQL query. Is that the way to go or am I missing something?