I read through the codex for these 2 functions:
wp_get_attachment_image
http://codex.wordpress.org/Function_Reference/wp_get_attachment_image
wp_get_attachment_image_src
http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
But when I try to run it specifying an image size it still returns the full sized image.
$image_attributes = wp_get_attachment_image_src( $post_id, 'medium' );
On the codex page under the $size
definition for both functions say:
"As of Version 2.5, this parameter does not affect the size of media icons, which are always shown at their original size."
Alternatively I've tried get_the_post_thumbnail
and image_downsize
with no luck.
Essentially I have the $post_id
for the attachment and I want to extract the url for the medium sized image.