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.

E.g. if I use this code inside functions.php

add_image_size( 'featured-extra-image', 600, 300, true );

and the uploaded image is only 550px width, it does not resize it to 600x300 px but only to 550x300 px.

How to force WP to resize it to my custom size, even it is bigger than original uploaded image?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

When you add the image to the post

  1. Select "Full Size"
  2. Click "Edit Image"
  3. Click the "Scale" button
  4. Manually edit the dimensions
  5. Save all changes
  6. Check to see if "Full Size" has your new dimensions
  7. Click "Use as featured image"
share|improve this answer

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.