I' using the WordPress Download Monitor plugin. It works great, but I would like to be able to show Most Downloaded files this week or this month.
I have a script showing the most downloaded files all time and it looks like this:
$dl = get_downloads('limit=5&orderby=hits&order=desc');
if (!empty($dl)) {
echo '<ul class="downloadList">';
foreach($dl as $d) {
$date = date("jS M Y", strtotime($d->date));
echo '<li><a href="'.$d->url.'" title="'.__('Version',"wp-download_monitor").' '.$d->version.' '.__('downloaded',"wp-download_monitor").' '.$d->hits.' '.__('times',"wp-download_monitor").'" >'.$d->title.' ('.$d->hits.')</a></li>';
}
echo '</ul>';
}
So, anybody able to modify it into showing most downloads this week?