Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WP SC – Ft Img from ID

// Add Shortcode
function wp_ft_img( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'postid' => '',
		),
		$atts
	);

	return get_the_post_thumbnail($post->ID);

}
add_shortcode( 'wp-ft-img', 'wp_ft_img' );