Hey guys, is it possible to add thumbnails in the search results?
I have tried to add this snippet in search.php line 28 but it doesn’t show the thumb, it displays the full image and doubles the description.
<div class="entry">
<?php
if ( has_post_thumbnail() ) { // check if the post Thumbnail
the_post_thumbnail();
} else {
//your default img
}
the_excerpt(); //your short description
?>
</div>
-
This topic was modified 3 years, 3 months ago by
johnnyd.