PHP echo linking -


how can add link following line?

if ($image) echo $image->resize('w=272&h=170'); 

i have tried adding

if ($image) echo '<a href="'.get_the_permalink().'">'$image->resize('w=272&h=170')'</a>'; 

if ($image) {     echo '<a href="'.get_the_permalink().'">' . $image->resize('w=272&h=170') . '</a>'; } 

Comments

Popular posts from this blog

c# - how to use buttonedit in devexpress gridcontrol -

how to display 2 form fields on same line with bootstrap -

How do you convert a timestamp into a datetime in python with the correct timezone? -