Login
Get Started

Easy Digital Downloads Documentation

Documentation, Reference Materials, and Tutorials for Easy Digital Downloads 

Linking Product Images in the downloads Shortcode

This doc shows how to link the product images shown in the [downloads] shortcode to the product pages.

  1. Create a folder called edd_templates inside of your currently active theme’s directory.
  2. Create a file called shortcode-content-image.php in the new folder created in 1.
  3. Paste the code below into the new file:
<div class="edd_download_image"><a href="<?php echo get_permalink( get_the_ID() ); ?>"> <?php echo get_the_post_thumbnail(  get_the_ID(), 'thumbnail' ); ?> </a></div>

Was this article helpful?
[sp_template_part id="1831271"]

Copyright © 2025 Sandhills Development, LLC