Wordpress thumbnails not working

Posted on 2011-10-17
Last Modified: 2012-05-12

I need to display thumbnails on this page It's showing all images at 630px width which are resized by css to the thumbnail size. However I need to display the thumbnails. I inserted add_theme_support( 'post-thumbnails' ); into functions.php, but nothing changed. Do you have any ideas on how to make the thumbnails work?

Thank you!!!!
Question by:jenna25
    LVL 70

    Accepted Solution

    Adding the theme support is the first step.  Displaying the thumbnails requires:

    <?php the_post_thumbnail( $size, $attr ); ?>

    to be inserted into the Loop.

    Documentation and code samples are here:

    LVL 31

    Assisted Solution

    You include the dimensions you want the thumbnail

    the_post_thumbnail( array(150,150) );  

    or try the defaults

    the_post_thumbnail( 'medium' );  
    the_post_thumbnail( 'large' );  

    or set the default image size in functions.php when you add_theme_support

    set_post_thumbnail_size( 150, 150, true ); // cropped = true

    You can also add a class (or any other attribute)

    the_post_thumbnail( array(150,150), array('class' => 'alignleft') );

    Featured Post

    Course: HTML5 for Beginning Beginners

    Are you looking for an efficient introduction to HTML5? Have you tried other HTML5 courses and found them too complex? Do you need just the basics of HTML5 to use with Wordpress or other content management system? If you said yes to any of these questions, this course is for you.

    Join & Write a Comment

    Suggested Solutions

    Wordpress Horizontal Drop-Down Menu In this tutorial I will show you had to add a WordPress horizontal navigation menu to your theme. I have searched and searched for a good tutorial on creating a WordPress nav menu without adding a plug-in or us…
    In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
    The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
    The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now