https://www.studiograsshopper.ch/code-snippets/wordpress-list-all-image-sizes-in-media-uploader/#comment-239069
with reply:
https://www.studiograsshopper.ch/code-snippets/wordpress-list-all-image-sizes-in-media-uploader/#comment-239158
Hello,
Found your pluggin but I’m struggling to use it. The drop down menu in Post > Images > Add Media window still displays the default three sizes plus full size.
I have entered these values into my functions.php file:
add_theme_support('post-thumbnails');
add_image_size('slider', 960, 430, true);
add_image_size('about', 210, 147, true);
add_image_size('gallery', 161, 161);
add_image_size('brokerage-thumbnail', 161, 147);
add_image_size('brokerage-medium', 161, 161);
add_image_size('brokerage-large', 530, 465);
add_filter('image_size_names_choose', 'my_custom_sizes');
function my_custom_sizes($sizes){
return array_merge($sizes, array(
'slider' => __('Sliding'),
'about' => __('About'),
'gallery' => __('Gallery'),
'brokerage-thumbnail' => __('Brokerage'),
'brokerage-medium' => __('Brokerage S'),
'brokerage-large' => __('Brokerage L')
) );
}
I’m I doing correctly?
Regards,
Sam
Activate. Then what?
https://www.ads-software.com/extend/plugins/image-size-selection/
]]>