- This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
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 › Clickable image thumbnail
Ah. OK.
The documentation for this method is here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
Note the section ‘Customising the Results’ and follow that.
See lines 56-62:
<?php
if ( has_post_thumbnail() ) {
echo '<p>';
the_post_thumbnail("small");
echo '</p>';
}
?>
They need the link adding, like this:
<?php
if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail("small");?></a>
<?php } ?>