Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.