Support » Fixing WordPress » wp_get_attachment_image_src return full image path regardless of size parameter
4 years ago
I have a strange problem with wp_get_attachment_image_src.
When I use
wp_get_attachment_image_src( $attachment_id, 'medium', false );
The returning value:
Array (  => path to full image  => 300  => 224  => )
The path is the full image path (which is not the medium size photo), the width and height is the medium size photo.
This problem only occurs with a particular web host.
Can anyone identify the source of the problem?
Thanks a lot!