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.
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 will ask for a donation before I’ll look at “how to” questions, I can’t teach PHP programming for free.
Version History:
- 0.2 – Released to the WordPress community.
- 0.1 – Initial version.
i cant seem to get this to work. no errors or anything, just isnt working.
Thanks so much for the help! I’ve got it working perfectly and I LOVE it! This is a great plugin!!
π
This is my first post
just saying HI
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.
Glad you got it working in the end adler!
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.
I use the Flexible Upload plug-in to automatically scale images and create thumbnails.
Then remember to include the <img … /> in the Optional Excerpt.
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
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!
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
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…
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
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…
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