I am running a query which pulls out the most popular taxonomy terms (named "cause") from a custom post type (named "reasons") and I am ordering them by most popular.
However, I need to limit the terms retrieved to the ones assigned to posts submitted within the last 12 hours.
The code I currently have is as follows:
$terms = get_terms('cause', 'orderby=count&order=desc&hide_empty=0&number=6');
foreach ($terms as $term) {
...
}