Forums Forums Search & Filter Pro Featured image size

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #88857

    Hi Trevor

    For some reason the featured image on posts is showing at it’s full size instead of thumbnail size on the search page: http://dev.herefordequestrian.co.uk/search-test/
    This problem isn’t occurring anywhere else on the website.

    Hope you can help,
    Many thanks
    Sally

    Trevor
    #88870

    Hi Guy/Sally (?)

    If you are using the Shortcode method which uses the results.php template, find the featured image part (on the standard template file this is at line 59) and see it is using the ‘small’ image size. Change this to ‘thumb’. See here, from this:

    if ( has_post_thumbnail() ) {
     echo '<p>';
     the_post_thumbnail("small");
     echo '</p>';
    }

    to this:

    if ( has_post_thumbnail() ) {
     echo '<p>';
     the_post_thumbnail("thumb");
     echo '</p>';
    }
Viewing 2 posts - 1 through 2 (of 2 total)