Support » Plugin: Media Tags » Display 'large' version of image on page

  • 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

Viewing 1 replies (of 1 total)
  • 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));

Viewing 1 replies (of 1 total)
  • The topic ‘Display 'large' version of image on page’ is closed to new replies.