Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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');

share|improve this answer
add comment

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 ;)

share|improve this answer
    
Thanks for this. While this is an easy fix, I'd prefer something built in. –  Pat Feb 25 '13 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 –  user1576978 Feb 25 '13 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 '13 at 19:08
    
well, i'm not sure what you're up too, i'd change the default size –  user1576978 Feb 25 '13 at 19:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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