- This topic has 15 replies, 2 voices, and was last updated 5 years, 8 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › styling search results
<div class="searchresults1"><?php
if ( has_post_thumbnail() ) {
echo '<a href="' . the_permalink() . '">';
the_post_thumbnail("small");
echo '</a>';
}
?></div>
<div class="searchresults1"><?php
if ( has_post_thumbnail() ) { ?>
<a alt="<?php esc_html(get_the_post_thumbnail_caption());?>" href="<?php the_permalink(); ?>"><?php the_post_thumbnail("small");?></a>
<?php } ?></div>
maybe?