12/25/2016   Comments Off on Make WordPress generate additional custom-sized images

View all snippets

Add this to your function.php file and change the highlighted sizes and labels to what you’d like. Visit the WordPress Codex for more information on the add_image_size() function:

// Additional Image size

add_image_size('widescreen', 750, 425, false);


function your_custom_image_sizes($sizes) {
    return array_merge($sizes, array('widescreen' => 'Widescreen'));