WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get set the width, height and position of the Featured image for a new page I created.

share|improve this question
up vote 1 down vote accepted

To set the height and width of the_post_thumbnail use the following:

the_post_thumbnail( array(height,width))

Where it would show in code like this:

if ( has_post_thumbnail() ) the_post_thumbnail( array(200,999))

More Info on Post Thumbnails

share|improve this answer
That's great thanks! – Grundizer Oct 10 '12 at 16:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.