WordPress.org

Ready to get started?Download WordPress

Forums

wp_get_attachment_image_src return full image path regardless of size parameter (1 post)

  1. joetheboss
    Member
    Posted 1 year 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 ( [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!

Topic Closed

This topic has been closed to new replies.

About this Topic