2

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.

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.

1

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

the_post_thumbnail(array(270,270));

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.