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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -