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

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -