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

  1. surfsup74
    Posted 2 years 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


  2. stevesearer
    Posted 2 years 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

  • Media Tags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic