Download Featured Image Link in Post Shortcode
You can use add_shortcode function to register a custom shortcode for your site. For example like this, // add to (child) theme’s functions.php function my_download_featured_image_link( $atts, $content=”” ) { // shortcode should return its output return sprintf( ‘<a class=”download_image” href=”https://wordpress.stackexchange.com/questions/356495/%s”>%s</a>’, // html output of the shortcode esc_url( get_the_post_thumbnail_url(null, ‘full’) ), // defaults to current global … Read more