a template tag for the medium and thumbnail images of the original full size upl

  1. perthmetro


    e.g. <?php image_thumbnail(imageabc.jpg) ?>

    This will display the thumbnail version of the original image...

    <img src="http://website.com/wordpress/wp-content/uploads/<?php image_thumbnail(imageabc.jpg) ?>" alt="<?php the_title(); ?>" />

    You know how WP creates 2 new images of different sizes than the full size image that is uploaded...
    1. image.jpg
    2. image-300x300.jpg (medium) - this is a newly created image
    3. image-150x150.jpg (thumbnail) - this is a newly created image

    the dimensions may change, so i was wondering if there is a tag that will display the 'medium' or the 'thumbnail' version of each image

    Posted: 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    2 Votes
  • Status

    This idea has been implemented