Custom image sizes
-
Hi,
I have a strange worpdress issue!
I have created some custom image sizes using the following code:-
if (function_exists('add_theme_support')) { add_theme_support('post-thumbnails'); add_image_size('home-feature', 960, 320, TRUE); add_image_size('news-main', 960, 206, TRUE); add_image_size('news', 49, 87, TRUE); }
All works fine and the images are created at those sizes.
To call the image for this example in single.php I use the following code:-
<?php the_post_thumbnail('news-main'); ?>
But the default thumbnail is called at 150×150!
Any ideas and I have tried everything.
Thank you people
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Custom image sizes’ is closed to new replies.