• hello,

    i have this code that i want to use in my pages template to show downloads that are in a post,

    <?php
    $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>';
    }
    ?>

    the thing is how do i edit the parameters so that it just shows the download(s) in that specific post

    Thanks

  • The topic ‘download monitor templae tag’ is closed to new replies.