I know how to use add_image_size in PHP to register a new size which can be used in templates.
It makes images in this size, too when they’re uploaded.
The sizes I added like that don’t show in the admin, though.
So 2 questions…
-
How can I get the image sizes that I make show up in the ‘upload image’ thing when bloggers make a new post?
-
Is there a way to list it in the admin so the bloggers can add new ones without having to change PHP code?
Or am I doing something wrong, like not putting the add_image_size call in the right place/file? Are sizes like this supposed to show up in the upload menu section?
Cole
WordPress doesn’t show custom image size options in the media lightbox, but you can add them using an
attachment_fields_to_edit
filter. The below will add options for all the custom image sizes you have defined.