[wp-hackers] Can't get the thumbnails to work

Alex Ciobica alex.ciobica at gmail.com
Mon Jun 14 10:47:55 UTC 2010


I just can't seem to get the hang of working with thumbnails in Wordpress
2.9.2.

I added the support like so:
if ( function_exists( 'add_theme_support' ) )
    {
     add_theme_support('post-thumbnails', array('page'));
        set_post_thumbnail_size ( 290, 90, TRUE );

        add_image_size('domain-thumb', 700, 270, TRUE); // for domain header
thumbnails
        add_image_size('cluster-thumb', 460, 90, TRUE); // for cluster
thumbnails
    }

And I add them to my theme using:
    get_the_post_thumbnail( $post->ID, 'domain-thumb');
    get_the_post_thumbnail( $post->ID, 'cluster-thumb');
    get_the_post_thumbnail( $post->ID, 'thumbnail');

The problem is that they are retrieved resized, not cropped.
I regenerated the thumbnails 1000 times using the "Regenerate Thumbnails"
plugin.

These are my Media settings. <http://cl.ly/314446f776c98028a7a4>

Any ideas on why?


More information about the wp-hackers mailing list