Title: the_post_thumbnail(array(X,Y)) doesn&#039;t work well
Last modified: August 19, 2016

---

# the_post_thumbnail(array(X,Y)) doesn't work well

 *  [baia](https://wordpress.org/support/users/baia/)
 * (@baia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/the_post_thumbnailarrayxy-doesnt-work-well/)
 * Hi everyone,
 * The size of my posts’ featured images is 700×400 or more, and in order to display
   them center-cropped to 300×400 I use :
 * the_post_thumbnail(array(300,400));
 * However this code displays everything except a 300×400 image. Anybody could tell
   me how to achieve what I want ?

The topic ‘the_post_thumbnail(array(X,Y)) doesn't work well’ is closed to new replies.

## Tags

 * [the_post_thumbnail](https://wordpress.org/support/topic-tag/the_post_thumbnail/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [baia](https://wordpress.org/support/users/baia/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/the_post_thumbnailarrayxy-doesnt-work-well/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
