Wordpress: how to display a thumbnail of an image?

5 replies
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!
#display #image #thumbnail #wordpress
  • Profile picture of the author goodmast3r
    I think you need to update the theme code
    Signature
    {{ DiscussionBoard.errors[7982892].message }}
  • Profile picture of the author SteveJohnson
    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.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7983015].message }}
    • Profile picture of the author SqueezePageEngine
      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!
      {{ DiscussionBoard.errors[7987091].message }}
  • Profile picture of the author galihkartiwa
    if you want to get the image size as you want, you can use timthumb script
    {{ DiscussionBoard.errors[7996020].message }}
  • Profile picture of the author vikash_kumar
    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.
    {{ DiscussionBoard.errors[8004998].message }}

Trending Topics