0

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

1

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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