I want to insert html in php code but the problem is this html portion already contain php code. Below is the wrong code can any body correct it??
<?php
if (isset( $metro_creativex_feat_image[0] )) :
echo ' <a href="<?php the_permalink(); ?>"><div class="img">' . get_the_post_thumbnail() . '</a></div>';
endif;
?>