How to crop Thumbnails automatically?
-
Hi!
I have tried the thumbnail function described here:
https://mattbrett.com/2010/01/bulletproof-post-thumbnails-in-wordpress-2-9/But my thumbnails doesn’t seem to crop, even though I use the ‘true’-function. Any ideas?
This is what I use in functions.php:
<?php if (function_exists('add_theme_support')) { add_theme_support('post-thumbnails'); set_post_thumbnail_size(225, 150, true); } ?>
This is what I have in index.php:
<?php the_post_thumbnail(); ?>
The thumbnails just seem to re-size propositional. The image URL is just as the same as the original one.
I’ve read the tutorial in many different versions, but I just can’t seem to see what I’m doing wrong … The thumbnail just doesn’t seem to crop in the exact dimensions I have specified (225×150).
Any ideas?
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to crop Thumbnails automatically?’ is closed to new replies.