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
Post a Comment