Getting an attachment from a URL
Specifically, to get a different size of the image.
$attachment_id = get_attachment_id_from_src($solutions_metabox->get_the_value('image')); $image_url = wp_get_attachment_image_src($attachment_id,'solutions');
Specifically, to get a different size of the image.
$attachment_id = get_attachment_id_from_src($solutions_metabox->get_the_value('image')); $image_url = wp_get_attachment_image_src($attachment_id,'solutions');
©2024 Catherine M. O'Brien. All rights reserved.