Title: Thumbnails incorrect
Last modified: August 19, 2016

---

# Thumbnails incorrect

 *  [sollers](https://wordpress.org/support/users/sollers/)
 * (@sollers)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/thumbnails-incorrect/)
 * Worked in 3.0-beta1, but now they have same hight and various width.
 *     ```
       add_theme_support( 'post-thumbnails', array( 'post' ) );
       set_post_thumbnail_size( 160, 90, true );
       ```
   
 * “true” doesn’t seem to work anymore.
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [staticx99](https://wordpress.org/support/users/staticx99/)
 * (@staticx99)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/thumbnails-incorrect/#post-1549940)
 * Same problem here, the thumbnails always keep the original height and resize 
   the width to fit the div… I want to do the opposite, adjusting the width of the
   image to the width of the div and scaling the height of the image to fit, keeping
   the original ratio of the image … any help plz?
 *  [staticx99](https://wordpress.org/support/users/staticx99/)
 * (@staticx99)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/thumbnails-incorrect/#post-1549941)
 * Got it … found the answer here : [http://nenuno.co.uk/creative/wordpress/adding-post-thumbnails-to-wordpress-3-0/](http://nenuno.co.uk/creative/wordpress/adding-post-thumbnails-to-wordpress-3-0/)
 * for me , only adding this line `<?php if ( function_exists("has_post_thumbnail")&&
   has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array("class" => "
   alignleft post_thumbnail")); } ?>`
 * before the content in the loop solved the problem.
 * Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Thumbnails incorrect’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [staticx99](https://wordpress.org/support/users/staticx99/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/thumbnails-incorrect/#post-1549941)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
