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:
<?php if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( get_the_ID() ) ) : ?>
	<div class="edd_download_image">
		<a href="<?php echo get_permalink( get_the_ID() ); ?>">
			<?php echo get_the_post_thumbnail(  get_the_ID(), 'thumbnail' ); ?>
<?php endif; ?>