php - on click post thumb nail redirect to another site -
this code
<a href="`<?php the_content(); ?>`" title="<?php the_title();?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail('thumbnail'); }?></a>
on clicking post thumbnail want redirect site have given link in content in link of content cannot figure out so, can help?? thank you!!
try one
<a href="<?php echo the_content(); ?>" title="<?php echo the_title();?>"> <?php if ( has_post_thumbnail() ) { echo the_post_thumbnail('thumbnail'); }?> </a>
Comments
Post a Comment