Aug 25, 2014 - WordPress    Comments Off on Getting an attachment from a URL

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');

Comments are closed.