How do I use "add_image_size" function for more thumbnail sizes.
-
I have searched for hours on how to add more thumbnail sizes to wordpress and have them work correctly. I found this bit of code that can be added to functions.php (in child theme), and can add one extra size, however I want to add more.
<?php if ( function_exists( 'add_image_size' ) ) { add_image_size( 'new-size', 650, 650 ); //(cropped) } add_filter('image_size_names_choose', 'my_image_sizes'); function my_image_sizes($sizes) { $addsizes = array( "new-size" => __( "New Size") ); $newsizes = array_merge($sizes, $addsizes); return $newsizes; } ?>
However I’ve tried everything I could, and re-read the codex over and over, but just can’t understand what I’m doing, and get it to work. Can anyone help explain which extra lines of code will be necessary to add?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How do I use "add_image_size" function for more thumbnail sizes.’ is closed to new replies.