WordPress.org

Forums

Download Monitor
Sorting by last downloads (2 posts)

  1. Renik
    Member
    Posted 3 years ago #

    Hello,

    is possible to sort it from last downloads? I have script in template (header.php)

    <?php $dl = get_downloads('limit=10&orderby=id&order=desc');
    if (!empty($dl)) {
        echo '<ul class="downloadList">';
        foreach($dl as $d) {
            $date = date("jS M Y", strtotime($d->date));
            echo '<li class="downloadlistli"><a>url.'" title="'.__('Version',"wp-download_monitor").' '.$d->version.' '.__('downloaded',"wp-download_monitor").' '.$d->hits.' '.__('times',"wp-download_monitor").'" >'.$d->title.'</a>';
        }
        echo '';
    }
    ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

    http://wordpress.org/extend/plugins/download-monitor/

  2. icruzbenard
    Member
    Posted 3 years ago #

    Do you mean sort the downloads by last document that was uploaded?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Download Monitor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic