Every professional blog must have thumbnails to identify every post. This not only enhances the overall design of the blog, but also adds to the vibrance of the site. It also leverages slightly from the search engine optimization (SEO) perspective.
My blog pages were literally looking visually tasteless and I recently installed the WP Post Thumbnail plugin to fix this. This plugin worked out-of-the-box and allowed me to easily include thumbnails to my posts without performing a large number of manual steps. Simple: upload image, crop and save thumbnail!
However, then I observed that people would have a natural tendency to click the thumbnail to open the post. To my surprise, this plugin had no configuration page. Ultimately, I had to edit the plugin itself to fix this.
The code to do this is really simple. Go to “Editor” under Appearance tab of your WordPress admin section and start editing “wp-post-thumbnail/wppt.php”. Go to line 277 (that says $content = <img alt=”" …) and replace the entire line with the following line of code:
$content = '<a href="'.get_permalink($post->ID).'"><img src="'. $src .'" alt="'.$alt.'" /></a>' . $content;
This is applicable for the plugin version 0.1.8. Previous or latter version may have this code in some other line. In fact, as I write there is an updated beta version available for download.
I think that the author, Stanley Yeoh has done a great job with this plugin. I hope he provides this feature, of being able to link the thumbnails, in his upcoming release.
Stlease.anley Yeoh
Related posts:


