I’ve hunted around but can’t seem to get to the bottom of this – might be a case of me not hunting very well slow please point me in the right direction if I’m repeating a questing sorted somewhere else…
I am using
<?php the_post_thumbnail(); ?>to call featured images from my posts but I’m having some issues with the sizing of them
In my functions.php I have set up different image sizes.
And I have the thing working perfectly on my localhost (running on Windows 7 through XAMPP) However – when I upload my theme to a live install the image sizes have no impact – so I have set up an image size that is 290px x 485px but when it is called it is just showing the image width 290px but then scaled down to show the complete image.
Does anyone know what might be causing this?! I’ve probably not given enough information…
The image size setting in functions.php looks like this:
add_theme_support( 'post-thumbnails' ); add_image_size('smallpagefeatured', 335, 320, true);
and then the call in the page template is:
<?php the_post_thumbnail('smallpagefeatured'); ?>
Many thanks for your time
- The topic ‘Post Thumbnail cropping issue’ is closed to new replies.