Custom Image Size, i'm doing it wrong
-
Hey,
i tried to add a custom image size. The Goal is to add a custom square image within the post with a custom template .I have read the functions for this and wrote for testing:
//Image Size add_image_size( 'custom-size', 220, 180, true ); // 220 pixels wide by 180 pixels tall, hard crop mode add_filter( 'image_size_names_choose', 'category-thumb' ); function my_custom_sizes( $sizes ) { return array_merge( $sizes, array( 'your-custom-size' => __( 'Your Custom Size Name' ), ) ); }The Result of this is that all standard sizes went away. What am i doing wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Custom Image Size, i'm doing it wrong’ is closed to new replies.