ThemeForest

WordPress 2.9 - Post thumbnails - square?

47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Been playing with the new WP feature and it seems that you can generate only square thumbnails.

I tried

<?php set_post_thumbnail_size( 600, 200, true );

but it seems to register just the height. Is that correct or am I doing it wrong?

2 years ago
1842 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 100 and 199 users
digitalimpact says

did you add this exact code in your functions.php file?

<?php add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 600, 200, true );
?>

If so, then this really worries me, because I am planning to use it too, for a client, and thumbs won’t be square…

Maybe you can get away with not specifying the set_post_thumbnail_size();

Have you tried that? Has anyone else used this with “non-squared” images?

2 years ago
47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Ok I got it to work.. What I had to do is upload a new image from my computer. It seems that the ones in Media Library kept using the old dimensions which were square.

2 years ago
1842 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 100 and 199 users
digitalimpact says

pheeew, you really got me scared there man :P

thanks for letting us know :)

2 years ago
47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Sorry about that. I was pretty disappointed myself, lol.

2 years ago
242 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
ATLChris says

There is a plug-in called “Regenerate Thumbnails” this will go back and regenerate all the thumbnails for uploads that are already on the server. It also supports the new post thumbnails, so if you start using post thumbnails, and want to go back and add them to all existing images already uploaded just run this plug-in and it will go back and solve this problem.

2 years ago
1842 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 100 and 199 users
digitalimpact says

thanks for adding that Chris, might come in handy :)

2 years ago
by
by
by
by
by