Support » Plugin: Download Monitor » Making Downloads Monitor work with Advanced Custom Field

  • Resolved JeffSydor-BIPC


    I want to have a related downloads list on various sidebars that are specifically related to the current page/post. Suppose an article has a presentation & questionnaire for downloads. I want them to appear in my sidebar on that page. I’m currently using Advanced Custom Fields (ACF) and Downloads-Monitor (DLM).

    I want this to be something that the user either tags the appropriate post from the download manager, or tags the appropriate download link from the post. Perhaps there’s an existing plugin that I’m unaware of?

    I added a document to the DLM and tried adding a custom field called “related_download” with a value of the slug for the page I’m testing (i.e. events). I attempted to call the new field and see if it matches what the current page’s slug is. If it does, run the proceeding code for the list.

    <div class="widget widget_related_docs">
      <h4>Related Downloads</h4>
      <div class="side-content">
          <?php echo do_shortcode('[downloads category=related-download order=ASC template="my-template"]'); ?>
     * Detailed download output
    if ( ! defined( 'ABSPATH' ) ) {
    } // Exit if accessed directly
    if ( $dlm_download->get_field('related_download') ) :
      global $post; // get the post meta and search for slug
      $post_slug = $post->post_name;
      if ( $dlm_download->the_field('related_download') = $post_slug ) :
      <a href="<?php $dlm_download->the_download_link();?>" target="_blank"><?php $dlm_download->the_title();?></a>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Harish Chouhan



    Thanks for reaching out to us.

    I regret to say this is beyond the scope of our support. Our plugin does not have any related post feature.

    I would suggest contacting 3rd party developers to assist you with the same.

    Thanks Harish. Maybe I was not clear. I’m not trying to have a related post feature. I guess a better question would be something like this.

    Since I am using Advanced Custom Fields (ACF), is there a way to call the content of those ACF fields like how you do with other standard elements?

    For example, if I want the title of a file, I’d use: <?php $dlm_download->the_title();?>

    Can I also do something like: <?php $dlm_download->the_field('location');?>


    @jeffsydor-bipc any luck? I’m trying to figure this out too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.