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 want to know how to make rules to re-size the images for featured image? I am uploading an image in featured image section but it is not cropping the images in exact width and height for all the images. I need (width:100 X height:140). So how to do that? Any help and suggestions are welcome.

share|improve this question
add comment

2 Answers 2

You can set default site for featured images using set_post_thumbnail_size() or request different registered size by providing it as argument in the_post_thumbnail() call.

share|improve this answer
add comment

in wordpress, you can set the width and height of the thumbnail image by:

the_post_thumbnail(array(270,270));
share|improve this answer
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.