Download Monitor
Calling download ID? (1 post)

  1. chadcwm
    Posted 3 years ago #

    I'm trying to add links in a template to the files uploaded to my site through Download Manager. It was originally set up to use the Email to Download plugin, but now my client wants just links to the files instead of requiring visitors to enter an email address.

    I'm having trouble on figuring out how to get the ID of the download and displaying that in a link…any help?

                                                            // The Query
    														query_posts( array( 'post_type' => array(download), 'category__and' => 22, 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'Position' ) );
                                                            // The Loop
                                                            while ( have_posts() ) : the_post(); ?>
                                                            <img src="<?php echo get_upload_url(); ?>/2011/12/icon_PDF_sm.png" style="margin-right: 5px;">
    														<a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
                                                            <?php endwhile; 
                                                            // Reset Query


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic