Reply To: featured images not displayed in correct size

Home Forums WordPress Themes – Premium Encounters featured images not displayed in correct size Reply To: featured images not displayed in correct size

#19339

Hi Andre,

thanks for the help, it works great.
Actually, it was absolutely simple and straight-forward at the end.

  1. In your case blockthe_post_thumbnail(”, array(‘class’ => ‘alignleft’)); without the specific image size. I only had to add thumbnailthe_post_thumbnail(‘thumbnail’, array(‘class’ => ‘alignleft’));
  2. But now, I was not too happy because this resulted in uneven image sizes, depending on the orientation of the image.
    Therefore, I added my own custom image size in the functions.phpadd_theme_support(‘post-thumbnails’);
    add_image_size( ‘dzdethumbnail’, 150, 9999 ); and

    post_thumbnail('dzdethumbnail', array('class' => 'alignleft'));   

The result is exactly what I was looking for. Very nice.
All I’m wondering is, why you have the case in your theme, but are not calling for the WP default image sizes like “thumbnail” or “large”. As is, the case seems pointless as it always yields the original image size. Or am I overlooking something?

Best regards,
Marcus