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.
- Create a folder called edd_templates inside of your currently active theme’s directory.
- Create a file called shortcode-content-image.php in the new folder created in 1.
- 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>