I'm using this code:
set_post_thumbnail_size(726, 200, true);
My objective is to input any size image and let WP crop it and resize it to 726x200.
I got it working ONE time, just once.
Now it doesn't work anymore. I tried 5 different servers. I tried localhost with xampp and wamp. Nothing!
The image resizes fine but it doesn't get cropped as it should.
I've been looking for answers for the past 5 hours with no luck.
GD is loaded in PHP. I tried different httpd.conf and php.ini tricks and nothing works.
I tried removing the image from the gallery and adding it again as some people suggest and still nothing.
I'm desperate!
Is this a bug?
An image so you can see what's wrong. The image is being resized only but it should be cropped and it should span to the end of the container.
bad http://tinypic.com/images/404.gif
functions.php
just afteradd_theme_support( 'post-thumbnails' )
set_post_thumbnail_size($variable, 200, true)
, but if I pass the actual value like thisset_post_thumbnail_size(726, 200, true)
IT WORKS! Can't believe I just wasted 5 hours...