I am using the Download monitor plugin
I am listing the posts by category the following way
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
<?php
$args = array(
'post_type' => 'dlm_download',
'posts_per_page' =>25,
'numberposts' => null,
'dlm_download_category' => $term->slug
);
$downloads = get_posts($args);
foreach ($downloads as $download) {
echo '<div class="download-content">';
echo '<h3>
<a href="" title="Letöltés"><i class="left icon-arrow-down"></i></a>
'.$download->post_title.'
<a href="" title="Információ"><i class="right icon-plus"></i></a>
</h3>';
echo '<p>'.$download->post_excerpt.'</p>';
echo '</div>';
}
?>
But i have no idea how to show custom post attached file. The file is contained i the wp_postmeta table,
I tryed with wp_get_attached_ur($download->ID)
but it returns an empty string
Anybodycould please give me a hint?