Jun 22 |
The theme (look and feel) used for Sterling Adventures has been developed with lots of love and care! Although it probably still isn’t anywhere near perfect (or even working in some places - software is never bug-free), but I am fairly proud of it.
So, I think some of it is now at a point where it’s worth shouting about, and possibly sharing…
One aspect of the look and feel is having a thumbnail image in the excerpt shown on the index page. There isn’t any rocket science here - it’s simply up to the post author to provide the image (and text) in the optional excerpt in WordPress’ write a post form. However, the “trick” bit is to make that thumbnail image a hyper-link to the post. I’ve done this with a simple WordPress plug-in called ‘Image Link‘. This is available as a download here.
All I ask is that you leave your greeting card here (i.e. leave a comment
) and credit the widget (i.e. include a link to this page) on your blog.
Because of some demand, please feel free to make a donation here if you find the code valuable!
Thanks!
Instructions:
Just put the plug-in into your plug-in directory (if this doesn’t make sense it probably isn’t something you should be trying
) and activate it. Any excerpts with images (using <img /> tags) will have the image wrapped up as a hyper-link to the post’s permalink. Making them clickable…
But please note I may have to ask for a donation before I’ll look at “how to” questions…
Version History:
- 0.2 - Released to the WordPress community.
- 0.1 - Initial version.


14 Responses to “Image Link WordPress Plug-in”
Monday, August 27th, 2007 at 12:51 am
i cant seem to get this to work. no errors or anything, just isnt working.
Tuesday, August 28th, 2007 at 8:31 pm
Thanks so much for the help! I’ve got it working perfectly and I LOVE it! This is a great plugin!!
Saturday, September 8th, 2007 at 11:44 pm
This is my first post
just saying HI
Tuesday, September 25th, 2007 at 9:58 pm
i’ve activated the plugin but simply it doesnt works. I cant click on the images … its like the plugin is not even there…it has no effect.
Thursday, December 6th, 2007 at 2:05 am
Glad you got it working in the end adler!
Saturday, January 5th, 2008 at 8:25 pm
hi! heard good comments about your plugin
but I follow the instructions but dunno what went wrong too, it does not seem to be working for me as well.
And another question, how do i create img thumbnails? Thanks.
Sunday, January 6th, 2008 at 4:58 pm
I use the Flexible Upload plug-in to automatically scale images and create thumbnails.
Then remember to include the <img … /> in the Optional Excerpt.
Thursday, February 28th, 2008 at 10:51 pm
Hi,
this is the plugin i looked for a long time. Thanks a lot! If i put my site in http://validator.w3.org there comes ONE error i dont know how to fix em.
required attribute “alt” not specified
How can i fix that?
Cheers
Denis
Friday, February 29th, 2008 at 2:36 pm
Denis, thanks! It is a simple but very useful plug-in huh!
Anyway, regards your problem -
The plug-in simply wraps <IMG … /> mark-up found in the excerpt in a hyper-link (i.e. <A … ><IMG … /></A>) so any issues with ALT properties, which are part of the <IMG … />, must already be there. Deactivate the plug-in and you’ll see it is still invalid. That is, this is not a problem with the plug-in. Take at look at your post, you need to add ALT=’…’ to your <IMG … /> mark-up.
Good luck!
Saturday, March 1st, 2008 at 8:01 am
Hi Pete,
thanks for your quick answer
!
Is it possible to put an ALT=”" into you plugin that contains the the the same as TITLE=”" ? that would be great.
I tried it that way, but it doesnt work.
Cheers
Denis
Saturday, March 1st, 2008 at 11:53 am
Denis, I don’t think you understand, you don’t need (it isn’t allowed or part of the standard) an ALT in the <A> mark-up, it goes in the <IMG> markup - which is wrong in your post! This is nothing to do with the plug-in…
Saturday, March 1st, 2008 at 12:17 pm
Hi Pete,
i know that it got nothing to do with the plugin. I just want to expand your plugin so that i dont have to put the ALT in the tag by myself. I looked your code and saw that you creat the title like that:
title= . $post->post_title . so i thought i could put something like alt= . $post->post_title . into the code. But that causes even more errors
the thing is that i want the alt tag created automatic from post just like you did for the title.
the plugin works totally fine, i only want to put the alt automatic in the code.
cheers
denis
Monday, March 3rd, 2008 at 9:53 am
Sorry, from my perspective, it would be wrong for the plug-in to alter the <IMG … > mark-up that comes directly from the content of posts authored in WordPress - they may well (should) already have detailed ALT properties etc. set…
Wednesday, April 9th, 2008 at 3:44 pm
Dear Pete,
I use your plugin on my website and it works great.
Since I’m using livewriter to post my blogs, I modified the plugin so that the thumbnail in de “content” teaser are linked to the post.
But now off course, all the images in my post linked to the post.
Not a big problem, but maybe there is an easy way to modify the plugin, that just the first picture of the post would be linked ?
Because I’m a php dummy, can you help me?
Best regards,
Non