[Plugin: Multiple Featured Images] Uploaded image dimensions
-
Hello,
I’m currently trying to get the original uploaded image dimensions by using the kd_mfi_get_featured_image_id() and wp_get_attachment_image_src() methods:
$image_id = kd_mfi_get_featured_image_id(‘home-image’, ‘post’, the_ID());
$image_info = wp_get_attachment_image_src($image_id);
error_log(“URL: “.$image_info[0]);
error_log(“Width: “.$image_info[1]);
error_log(“Height: “.$image_info[2]);The problem is that I’m always getting the generated thumbnail dimensions 150×150.
How can I get the original uploaded image dimensions?
Thanks in advance!
Diego Pardo
https://www.ads-software.com/extend/plugins/multiple-featured-images/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Multiple Featured Images] Uploaded image dimensions’ is closed to new replies.