You can use the get_the_post_thumbnail_url
explained here
So, the code would be
<a href="https://wordpress.stackexchange.com/questions/279104/<?php echo get_the_post_thumbnail_url(get_the_ID, array (2000, 1500) ) ?>" >....... </a>
You can use the get_the_post_thumbnail_url
explained here
So, the code would be
<a href="https://wordpress.stackexchange.com/questions/279104/<?php echo get_the_post_thumbnail_url(get_the_ID, array (2000, 1500) ) ?>" >....... </a>