Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the function


to check if an image size already exists, and if not create it. However when I use

add_image_size( 'test3', 150, 150, true );

after the call to get_intermediate_image_sizes() the image size is not created. The image size is created if I call add_image_size() before get_intermediate_image_sizes()

Full code

Any ideas appreciated :)

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.