New answers tagged

8

WordPress "crop" doesn't literally mean crop. As in take an image and cut out this precise portion of it from specified point. What it roughly means is: resize image to fit as well as possible, then crop parts that don't fit. In effect this meant that results are affected by ratio both of source image and target size. The exact logic is contained in ...


2

You also need to add it to image size chooser.You can do so using the filter image_size_names_choose. add_filter( 'image_size_names_choose', 'wpse_228675_custom_size' ); function wpse_228675_custom_size( $sizes ) { return array_merge( $sizes, array( 'image_horizontal' => __('Custom image size'), ) ); }



Top 50 recent answers are included