Simple Blogger Related Post Widget Without Thumbnails/Text Links Only
To do this you've got the likes of linkwithin, outbrain and nRelate -- all good widgets available for just about any platform. Other than that, for blogger, there's hardly any script available that will properly show related posts at the end of your post (or any other place that you'd like).
If your looking to display text links only, Mike More's related post widget for blogger is the best and simplest you'll find. The script below is version 1.0. The latest version 2.0 can also display post thumbnails and offer plenty of customizations.
The Script: (Blogger Related Post Without Thumbnails):
Add a new Javascript/HTML widget and paste the following:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script src="http://blogger-related-posts.googlecode.com/files/related-posts-widget-1.0.js" type="text/javascript"></script> <script type="text/javascript"> relatedPostsWidget({ 'containerSelector':'div.post-body' ,'loadingText':'loading...' });</script>
Note: The widget uses post labels to display related post links. Your recent posts will show up instead, if labels are missing. Make sure you've defined them.
Here's how to add the codes if you prefer:
- From your blogger dashboard, click "Layout" on the left panel.
- Click "Add a gadget" and scroll down until you see HTML/JavaScript. Open it.
- Paste the above codes in the content area there. Save it.
That's it. Your related posts should show up at the bottom of your article. It should help you increase page views and in turn decrease bounce rates - Both positive SEO signals.
Subscribe to:
Post Comments
(
Atom
)
Nice, This is work for my blog... Thanks
ReplyDeleteThanks!
ReplyDeleteI've tried Linkwithin, but it won't work like I want. This code is great!
Thanks,it works.
ReplyDeletewow, i love it simple, this is great! works for my blog! thanks so much :)
ReplyDeleteThis works great,and also improves page load times,and reduces redirects to other domains,i recommend this to anyone who are looking for seo.Thanks for this post.
ReplyDeleteat last i find out on your blog. thanks a lot!
ReplyDeletethank you it is also working on my blog but instead of showing Related Posts text it is showing Recent Posts. How to fix that error? Thank you ))
ReplyDeleteSorry for a delayed reply. You need to have support for post labels in your template for this code to display related posts instead of recent posts.
DeleteMake sure you have the following code in your template (Just replace [] with <> ).
[b:if cond='data:post.labels']
[data:postLabelsLabel/]
[b:loop values='data:post.labels' var='label']
[a expr:href='data:label.url' rel='tag'][data:label.name/][/a][b:if cond='data:label.isLast != "true"'],[/b:if]
[/b:loop]
[/b:if]
Hello, thanks, was very easy to implement.
ReplyDeleteHi, is there any way to change text "related posts"? I have my blog written in other language than english and wanted to add text in my own language.
ReplyDeleteVersion 1.0 does not support changing the text. However you can move to v2.0 for customization.
Deletehttp://www.moretechtips.net/2010/09/smarter-related-posts-widget-for-google.html
How TO Increase Text Size Please Tell Me Fast
DeleteDude just add this css code:
Delete#related-posts ul li a {
font: normal 14px 'georgia', arial, times;
}
Very nice bro.. thanks...
ReplyDeleteIt displays related posts even on the blog homepage under post excerpts.
ReplyDeleteHow can I get the related posts like the one you have on your own blog ;)
Enclose the widget with this condition. Just replace [ ] with < > on both ends.
Delete[b:if cond='data:blog.pageType == "item"']
PLACE WIDGET HERE...
[/b:if]
Hello,
ReplyDeleteI love this related posts widget. It's simple and it works unlike many others I've tried, but I have a little problem and hopefully you can help me out with this...
I also put some code in the template for share buttons so they appear under every post, but the related posts are above those buttons and I want the buttons to come first after the post ! I really don't know how to fix this.
I could put the buttons code in every post and then they will be above the related posts, but I really don't want to do that, because if I would want to change the buttons one day, I would have to edit each and every single post !
My blog: leesmix .blogspot.nl
You can try adding this code directly in your template right below the share buttons code. I have it installed that way.
DeleteHello Wajahat,
ReplyDeleteI have tried that, but it doesn't make a difference if it's placed directly in the template or in a widget it always puts my sharebuttons underneath it.
I can't figure it out and it's probably the last thing I need to fix before I can really "start" with my blog..
I was just looking for a fix for you. This widget is designed to display at the end of the post. The 'containerSelector':'div.post-body' defines the position for this widget. I have mentioned mike more's blog in the post above (The guy who wrote this plugin). Mike should let you know if there's a possibility.
Deletehttp://www.moretechtips.net/2009/04/jquery-gdata-api-smarter-related-posts.html
Saw that you are using the addthis widget. I'll get back once I'm able to switch positions of these widgets on my end. :)
Thank you for your time ! I think I already tried the smarter related post thing and that it didn't work ( ps. that link doesn't work anymore).
DeleteI hope it can all still work out. I'm new to all of this and tried Googling for a solution but haven't found anything yet.
I changed the part : div.post-body
Deleteto: div.post-footer-line-1
and now the related posts links are where I want them to be. Underneath adsense and above the labels :)
Awesome. You're smart.
DeleteThanks for nice code provide. One of the best article.
ReplyDeleteThank you
ReplyDeletethanks!!!
ReplyDeleteYes. You are great. Related posts widget is working for me on HowToBevast
ReplyDeleteI use this in my blog
ReplyDeleteI'm looking for easy text link related posts, this article can help me clear all problem
ReplyDeleteGrate share,
Thank
Nice bolg. It is really easy to do.
ReplyDeleteThat's a great widget! Now I had related posts on my blog. But 1 question is: How do I turn off recent posts feature?
ReplyDeleteAre you seeing recent posts instead of related?
DeleteI don't see the widget anywhere on your blog. Just add the following in your CSS.
ReplyDelete#related-posts ul li {line-height: 1.3}
showing recent posts.. lol
ReplyDeleteYou need to be define "labels" for your post for this to display related posts instead. Also your template should have support for post labels.
DeleteMake sure you have the following code in your template (With the [] replaced with <> ).
[b:if cond='data:post.labels']
[data:postLabelsLabel/]
[b:loop values='data:post.labels' var='label']
[a expr:href='data:label.url' rel='tag'][data:label.name/][/a][b:if cond='data:label.isLast != "true"'],[/b:if]
[/b:loop]
[/b:if]
when you say to put 'the following code in your template', where do you mean? in html, or in the actual script coding? or what? I'm so confused where to put it
DeleteIt really depends on your templae. If your are using the default template, just look for the following line in your template and paste the code just below it:
Deletediv class='post-footer-line post-footer-line-3'
Just make sure you replace ' [ ] ' with ' < > ' anywhere it appears in the code as I cannot paste it here in the comment section.
Thank you very much.Its really helped me.
ReplyDeleteHow long does it take to show up?
ReplyDeleteImmediately. Just make sure you are using labels on your posts.
DeleteNice and Simple. Love this!
ReplyDeleteHello sir! I paste the code but nothing show up! pls enlighten me more on to get the related post
ReplyDeleteYou have used the code twice. Just use it in one widget and it should show up.
DeleteThanks dear but how to increase the no of posts in this code
ReplyDeleteThis code only allows 5 posts by default. The latest version however, does allow for further customizations, including increasing the number of posts. Check out here: http://goo.gl/A9cIOc
DeleteThis comment has been removed by the author.
ReplyDeleteIt worked great, but it also shows related posts in my "pages", and I don't want that. Is there a quick fix? TY.
ReplyDeleteHi,
DeleteSimply enclose the widget with the "Posts (item)" conditional tag shown on this page:
http://techmarshal.blogspot.com/2014/01/about-blogger-conditional-tags-and-how.html
Hello Mr Wajahat...
ReplyDeleteThat trick works in my blog, but my slider (lofslider) stop working. Is it because jquery in my lofslider?
What must i do?
Thank you so much for your reply.
Hi! Try removing the jquery from this code (The first line). You probably have two instances of jquery code in the template which may be causing the problem.
DeleteHi Wajahat!
ReplyDeleteI have used it in my site. it's working fine but it also shows the labels below the post that I don't wanna show...can you work it out pls? Thanks a million! Here is my site:
EngGuide
Just add this css code to hide the labels:
Delete.post-labels {
display: none;
}
Thanks but another thing bro... It's showing related posts in post pages but recent posts in static pages... Any way to hide this recent post?
ReplyDeleteUse the related posts widget between conditional tag like this: http://pastebin.com/hb9f4tNh
DeleteHey Wajahat,
ReplyDeleteFirst, thanks for great article, I know it's an old one. We built Limk as related posts widget for Blogger.
Launched early in this year and the platform served over 500 million recommendations with hundreds of happy publishers.
Key advantages of Limk:
– Limk related posts widget is using the direct internal URLs, no redirection urls. Good for SEO juice.
– Mobile ready, looks great on mobile phones and tablets
– Stats panel gives all the data you need.
– Optional monetization is available for publishers.
Bloggers can give it a shot (it's free by the way):
https://app.limk.com/auth/signup?utm_source=register
Would love to help anyone to try our platform: ozer@limk.com
nice bro,
ReplyDeleteit works on my blog,
its super simple and recommended ways to add related post.
anyway,
i want to show more than 5 post, maybe 10 related post below my article.
what should i do?
thank you
Version 1.0 does not support customization. However, you can move to v2.0 for further customization.
Deletehttp://www.moretechtips.net/2010/09/smarter-related-posts-widget-for-google.html
relay goods ands simples
ReplyDeletecan i edit this code admin skin colour.
ReplyDeleteYou could definitely apply CSS to style the widget to match your blog's design. Thanks!
Delete