Featured image size

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.