WordPress.org

Ready to get started?Download WordPress

Forums

Media Tags
Display 'large' version of image on page (2 posts)

  1. surfsup74
    Member
    Posted 1 year ago #

    I am struggling to display the 'large' version of the image on my page.

    I am able to echo the thumbnail with:
    $taggedThumbnail = wp_get_attachment_thumb_url($mymedia->ID, 'thumb');

    and I'm able to echo the 'full sized' image with
    $fullSize = wp_get_attachment_url($mymedia->ID);

    But I can't seem to echo the 'large' image. I assumed it would just be:
    $largeSize = wp_get_attachment_url($mymedia->ID, 'large');

    However that doesn't work

    Thanks, Dan

    http://wordpress.org/extend/plugins/media-tags/

  2. stevesearer
    Member
    Posted 11 months ago #

    Hey Dan,

    I think you might have luck using the following, but replacing WIDTH and HEIGHT with the pixel dimensions you're looking to use:
    $largeSize = wp_get_attachment_url($mymedia->ID, array(WIDTH,HEIGHT));

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic