Support » Fixing WordPress » wp_get_attachment_image_src return full image path regardless of size parameter

  • joetheboss

    (@joetheboss)


    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 ( [0] => path to full image [1] => 300 [2] => 224 [3] => )

    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!

  • The topic ‘wp_get_attachment_image_src return full image path regardless of size parameter’ is closed to new replies.