Way to store featured image width and height in two separate variables?
You can always use the wp_get_additional_image_sizes() function to retrieve an image “size” (i.e. width, height, and the ‘crop’ option), like this: $image_sizes = wp_get_additional_image_sizes(); if ( isset( $image_sizes[‘slide_image’] ) ) { $size = $image_sizes[‘slide_image’]; var_dump( $size ); // Demo echo $size[‘width’]; // Demo } UPDATE In reply to your comment, i want to get the … Read more