• I’ve tried to find a topic on this, but am unsuccessful so far.

    I upload a photo and ask for a thumbnail. I upload successfully and get the code to link to the image.

    However, what I would like is code that will show the thumbnail in a post and link to the original image.

    Is there a way to do this? TIA.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I believe that WordPress gives the thumbnail image the same filename as the original image, but with either thumb_ or thumb- attached to the front. You’ll just need to change the filename in the image tag you’re given, and then wrap it in a link tag. Example for image image.gif:

    <a href="image.gif" title="Full version of image.gif"><img src="thumb_image.gif" alt="image.gif" /></a>

    Of course, you’d change the paths to the images to reflect where they actually are one your server. WordPress really should give the link to the thumbnail if you’ve asked for one to be created. I wonder if there’s a way to automate this?

    Thread Starter phisch

    (@phisch)

    Hi Avenir, thanks. I was hoping for an automated way to handle this. The reason is that many (most) of the people who will be posting on our site are complete novices–anything I can do to help make it simpler is much appreciated. I wanted a simple interface to work with photos, inside of the window where you post, rather than a solution that would require yet another account separate from WP’s.

    You might want to try this plugin
    https://fredfred.net/skriker/index.php/iimage-browser

    Thread Starter phisch

    (@phisch)

    This is perfect! There are a couple of steps I’d eliminate. Also, it would be great if you could tweak the code that comes up, for instance, adding a class=”classname” automatically.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uploading Images/Thumbnails’ is closed to new replies.