I have servel image sizes in my post, all under 2 proportion: square and rectangle.

for example square :100X100, 200X200 rectangle: 300X100, 600X200

Via ACF I created new image upload file so I can upload one proportion via ACF and one proportion via 'post-thumbnails'

How can I control add_image_size function so the rectangle resize will make from the rectangle file and the square resizes will make from the square size

1 Answer 1


WP image sizes apply to all images - there's no way to tell WP, "only generate rectangular sizes when I upload a rectangular image; and only generate square sizes when I upload a square image." So, you need to add (or customize an existing) image size for each scenario.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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