A customer on Easy Digital Downloads’ WordPress support forums asked if it was possible to show a download’s featured image any time they used the [[purchase_link]] shortcode.

Copy and paste the following into your child theme’s functions.php or custom plugin:

2 comments

  1. I tried to paste this in my child theme’s functions.phpp file and now I only see this error code on my screen:

    Parse error: syntax error, unexpected ‘<' in /var/www/vhosts/18/119959/webspace/httpdocs/promovisuals.com/pro/wp-content/themes/shop-front-child-theme/functions.php on line 53

Comments are closed.