[Plugin: WordPress Download Monitor] Calling download ID?
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?
<?php // 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(); ?> <li> <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> </li> <?php endwhile; // Reset Query wp_reset_query(); ?>
- The topic ‘[Plugin: WordPress Download Monitor] Calling download ID?’ is closed to new replies.