the_post_thumbnail returns full sized image, how to debug?


This is a weird situation. I have defined

 add_image_size('190x280',190 , 280,true);
 add_image_size('400x600',400 , 600,true);

Uploaded images to post as featured image, on the server side I see the resized images in the uploads folder.
In the template, I use code like this

<?php query_posts( 'post_type=hints&posts_per_page=1'); ?>
    <?php  if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div class="posrelative center-block ">
        <a class="colblack" title="<?php the_title_attribute(); ?>" href="<?php the_permalink();?>">
        <?php the_post_thumbnail('190x280', array('class' => 'img-responsive')); ?>
        <span class="textonpicleft two-lines"><?php echo get_the_title(); ?></span>

But, the function the_post_thumbnail returns only full sized image!

What the $#ck can it be? Because it is really annoying and I can not debug it? And this code I am using on other sites as well and everything works.

Do you know, how to debug it?

jam 9 years 2014-03-26T13:45:42-05:00 0 Answers 68 views 0

Leave an answer