add custom image sizes

Add the below function and action to your functions.php file.

Creates 4 extra image sizes of each image added to your site.

Enables the display of your custom image sizes on the “insert media” screen in the Attachment Display Settings.

Here’s the full code snippet

Comments are closed.