Wordpress: how to display a thumbnail of an image?

by 5 replies
6
When I upload an image, it is saved in two size: the original size and a cropped 200x200 thumbnail.
I'm using the pinboard theme and this uses the original sized image as thumbnail on my homepage. This is a gallery site, so this really slows down my site.

How can I make it so that the 200x200 thumbnail is displayed automatically on my index page?

Thank you for your help!
#programming #display #image #thumbnail #wordpress
  • I think you need to update the theme code
  • If you don't know what you're doing inside WP theme code, then you can't fix it yourself. Hire someone to do it, or try to get the theme author to update/fix it for you.
    • [1] reply
    • If you're comfortable with editing Wordpress code, you'll need to go into index.php (or page.php depending on how your theme is set up), and find where it references to the full size image, and replace it with:

      PHP Code:
      <?php  if ( has_post_thumbnail() ) { the_post_thumbnail(); }  ?>
      This will post the default thumbnail, which is your 200 X 200 in your case.

      Hope this helps!
  • if you want to get the image size as you want, you can use timthumb script
  • I will recommend you to search for an appropriate Plugin...Best suited for your requirements....There are several plugins in the plugin database of wordpress.

Next Topics on Trending Feed