html - I want to put an imgae + h5 inside the "a" tag in WordPress -


i want put image + h5 inside "a" tage in wordpress..it seem's not working.. syntax error whith calling image!..

echo '<li><a href="' . get_permalink($recent["id"]) . '">' . "<img src='".get_post_meta($post->id, "news_images", true) . "' />"  .$recent["post_title"].'</a> </li> '; 

try this

<li><a href="' . get_permalink($recent["id"]) . '"><img     src='".get_post_meta($post->id, "news_images", true) . "' />  .$recent["post_title"]</a> </li> 

hope works


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -