Cannot call Download Monitor from external template file
-
Hi there,
I just updated to the latest version and some of the custom code I had stopped working. Basically I was using the below code to fetch my downloads from a template of another plugin (Search & Filter Pro). Could you let me know how this can be fixed?
//
<?php
while ($query->have_posts())
{
$query->the_post();$dlm_download = new DLM_Download(get_the_ID());
?>
<li class=”packery-block”>
<aside class=”download-box”>
<div class=”download-box-content”>
<?php if ( (function_exists(‘has_post_thumbnail’)) && (has_post_thumbnail()) ) {
echo get_the_post_thumbnail($post->ID);
} else {
echo ‘get_the_filetype() .'”>‘;
}
?>
<div><small><?php echo $date = date(“jS M Y”, strtotime($dlm_download->post->post_date)); ?></small></div>
<div class=”doctitle-box”>
<h3><?php $dlm_download->the_title(); ?></h3>
</div>
<p>
<div><p><?php $dlm_download->the_short_description(); ?></p></div>
<small><?php $dlm_download->the_filesize(); ?></small>
has_version_number() ) {
printf( __( ‘Version %s’, ‘download-monitor’ ), $dlm_download->get_the_version_number() );
} ?>” href=”<?php $dlm_download->the_download_link(); ?>” rel=”nofollow”>
<?php _e( ‘Download File’, ‘download-monitor’ ); ?>
</p>
</div>
</aside><?php
}
?>
//
- The topic ‘Cannot call Download Monitor from external template file’ is closed to new replies.