Echo Additonal Download Details in DM Template
-
Still using and loving the plugin!
I was wondering if there was a way to reference the various other bits of a download’s information within the template page. I see in the included template files ways to get the download title, file name, file type, file size, short description, download count, version, and download link. I’ve been through the documentation, and the only way I see there to echo the post’s content is by using the
download-data
shortcode — and shortcodes don’t work on the DM template pages. 🙂In my case, I want to echo the download’s ID (to use in a bit of JavaScript) and the
post_content
, which will be where I store my release notes. None of the PHP code I’ve tried has worked for me:<?php $dlm_download->the_id(); ?> <?php echo $dlm_download->get_the_id(); ?> <?php $dlm_download->the_post_content(); ?> <?php echo $dlm_download->get_the_post_content(); ?>
…etc, etc.
Thanks in advance for any help you can provide!
- The topic ‘Echo Additonal Download Details in DM Template’ is closed to new replies.