0

In my functions.php I have defined the following:

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 475, 475, true );

I have used the Regenerate Thumbnails plugin to regenerate the thumbnails.

When calling <?php the_post_thumbnail(); ?>, the images do not look cropped. When checking my uploads folder I do not see any thumbnails set for 475x475.

Thoughts?

2 Answers 2

1

I've figured this out. Appears as though I really wanted add_image_size('post', 475, 475, true); and then reran the Regenerate Thumbnails plugin. After sorting out a permissions error on /wp-content/uploads, this worked great.

Then in my theme, I just displayed this image size for the post thumbnail. the_post_thumbnail('post');

0

I understand that you'd like to use <?php the_post_thumbnail(); ?>, but i'd use timthumb:

  1. install http://wordpress.org/extend/plugins/katalyst-timthumb/
  2. instead of the_post_thumbnail() try <?php the_post_thumbnail( array(475,475) ); ?>

hope it works ;)

4
  • Thanks for this. While this is an easy fix, I'd prefer something built in.
    – Pat
    Feb 25, 2013 at 18:50
  • ok so try this with the same code and plugin you used before : 1) set media size in config -> media -> 475x475 2) regenerate thumbnails 3) check if it worked Feb 25, 2013 at 18:54
  • If I change my medium thumbnail, that won't affect post-thumbnail will it? Just attachment thumbnail is my understanding.
    – Pat
    Feb 25, 2013 at 19:08
  • well, i'm not sure what you're up too, i'd change the default size Feb 25, 2013 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.