Having related posts with thumbnails at the end of your WordPress single posts page really does helps to maintain a low bounce rate.
Most of us do like the related posts widget that linkwithin provides,but there is almost no customizations you can make in that widget.
Here you have it horizontal Related posts(similar posts) for your WordPress blog with thumbnails with all of the customizations you want.
Note:-Please do read this post as I have considered almost all the possible things you folks wanted in a related post plugin such as:-
- The plugin does not have the authors url any where displayed (so no seo problem).
- It is far better than linkwthin widget and even much more compact.
- You can set the size of you thumbnails to whatever you want.
As of now this tutorial is only applicable to thesis users, but in a couple of days I shall post a tutorial for other themes too.
Step-1 : Download plugins
Download the similar posts plugin and post plugin library by Rob Marsh from the WordPress repository.
Once downloaded activate the plugin and go to the output settings
step-2
Paste this code at the box for output
<div id="similar-posts"><li><a href="{url}"><img src="{custom:thesis_post_image}" width="100" height="100" alt="" /></a><h1>{link}</h1></li></div>
Once you have pasted the code in their,remember to have text codes before and after the list as <ul> and </ul>
and save the output settings.
Step-3
Now open your themes custom.css and paste these codes in their.
#similar-posts li {
margin-left: 6px;
float: left;
font-weight: bold;
background: #f9fdfd;
font-family: Times, "Times New Roman", serif;
line-height: 1.4em;
overflow: hidden;
}
#similar-posts img { float: left; border: 2px solid #222; margin-top:4px; }
#similar-posts h1 {
clear:left;
font-size:13px;
font-weight:bold;
height:auto;
line-height:17px;
margin:0;
overflow:hidden;
text-transform:capitalize;
width:126px
}
Step-4
That done now all you need to do is place the following code in thesis open hook “after the post hook”
<?;php similar_posts(); ?>
This is how your Related posts show look like:-
As I have mentioned above that this method of displaying related posts with thumbnails works only for thesis, so please have patience as in a day or two I’ll post something that works with all the wordpress themes.
Do let me know which plugin you are using to show related posts with thumbnail?
Subscribe Updates, Its FREE!


→
{ 31 comments… read them below or add one }
it look really nice, is it load fast? i’m afraid it slow down the load..
I don’t think that it would slow down your speed,coz m using it in my blog and these plugins by rob marsh have been in existence since 08′ ,n most of all this plugin ,has its own cache so it wont do any harm to ur speed .
I will give it a try now, thanks
Great post bro! i have created my featured posts like this on my blog!
Know it, you can do almost anything u want with the plugins that I mentioned in this post.
Thanks for sharing. Will add this
Nice idea ! Thanks
Cant we use it for other themes?
Shahzad for other theme you can try wp-thumbie plugin.
Wp-Thumbie is very nice plugin
IMO choosing one plugin like wp-thumbie is better than using the above mentioned 2 plugins.. BTW i couldn’t stop myself appreciating u for ur coding skills..
Am getting this error : “Parse error: syntax error, unexpected T_STRING in /home/tlakhina/public_html/wp-content/plugins/thesis-openhook/functions.php(453) : eval()’d code on line 1″
Don’t know what to do..?
their is nothing much you need to do ….all you need to do is simple place
in thesis open hook .
Did everything as it says. Don’t know what went wrong.
can u gimme link to the domain you are using this on?
I got exactly the same problem!
I just found the problem that the code here is different from that in the plugin site http://rmarsh.com/plugins/post-options/ I am not a coder so it was difficult for me to address the problem. Thanks Shoaib. It’s a cool plugin!
I got a new problem that the fonts are very large and it seems changing codes in CSS doesn’t help!
This makes use of 2 plugins. Instead if you use YARPP Plugin then check this post @ http://buildinternet.com/2009/07/display-thumbnails-for-related-posts-in-wordpress/
that shows how to use the templates in YARPP to generate image thumbnails for related posts.
This could also be customized for Thesis Theme aswell.
You might want to check for typos in the above tutorial. It’s close, I think, but not quite workable.
Hi, I did exactly as you instructed. Great tutorial and it works!
But, like Tanuj said I’m too getting a Parse error: syntax error, unexpected T_STRING in my website. Please tell us what to do?
Thanks!
Got this:
Parse error: syntax error, unexpected T_STRING in /home/xxx/public_html/bb9700/wp-content/plugins/thesis-openhook/functions.php(595) : eval()’d code on line 1
Wow, I never thought that the template can be written freely without editing source code… I think thesis is good…
But aside from that, I think I have something to share about YARPP too. It is not related with thesis, but only vanilla WordPress. The similarity here is the use of YARPP.
I made a post-thumbnail also, using standard WordPress 2.9 post-thumbnail feature. And I also create overlay the image with the title of the post, on transparent background.
The implementation details can be found here: http://suhanto.net/yarpp-template-post-thumbnails/.
Anyway, thanks for sharing and approving my comment…
its not working on thesis 1.8 & wordpress latest version. thumbnails are not showing
Hi friend,
i want the plugin for writing codes in my posts… i want the same plugin that u guys are using on this site.. like grey background showing….
thanks…
not working on thesis 1.8 and wordpress 2.0.4
Can you use this code but with custom:thesis_thumb instead of custom:thesis_post_image, but it doesn’t seem to work. Any ideas?
Yes, you can! The code is
{link}
This also solves the big-text problem.
Hmm, that didn’t seem to post.
Basically, you just replace the words
custom:thesis_post_image
with
custom:thesis_thumb
and change the width and height to 66.
This also solves the problem of the text being too big.
I actually am using the Thesis theme from the back end as its not designed fully. So needs admin privileges to be seen.
ok when you’re done do lemme know where actually your are using and I’ll try solve your problem.