Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Add Related Posts Widget in Blogger

If you want that your blog readers see the related posts widget below each post and check the other posts on your blog before leaving your blog then you have to follow these blogging tips to do so.
The benefit of this related posts widget is that your readears will see the other posts related to this post and you will get more traffic for your blog and also permanent readers for your blog. Now let's start the procedure.
If you are interested in adding that widget, just read the guide below;
1. First of all Log in into blogger with your blogger ID.
2. Click on Layout.




3. Click EDIT HTML tab.
4. Click Download Full template. Please back up your template first because in case of any error you can reload your template again and restart your process from the first step easily.
5. Now find the code </head> and be sure that you have expand the widget.
6. Now copy the following code just right above the </head>


















7. Now in the next step search <data:post.body/> by pressing ctrl F. In some cases if you donnot found this then try for these two <div class='post-body>
or <data:post.body/>



After finding the above code now copy and paste the following code just below the above code.




<b:if cond='data:blog.pageType == "item"'><div id="related-posts"><font face='Arial' size='3'><b>Related Posts : </b></font><font color='#FFFFFF'><b:loop values='data:post.labels' var='label'><data:label.name/><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if><b:if cond='data:blog.pageType == &quot;item&quot;'><script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=5&quot;' type='text/javascript'/></b:if></b:loop> </font><script type='text/javascript'> removeRelatedDuplicates(); printRelatedLabels();</script></div></b:if>


















8.Click on SAVE TEMPLATE.
Now see the result in preview and you will be surprised after clicking on any post in your blogger. You can see the related posts widget working and related posts links are coming right after your each post. If you find it helpful then please leave a comment to know about more things like this.



9. If you want to see more then 5 related posts link then change max-results=5 to any desired number.
Thanks!



This post first appeared on Everything At Your Fingertips, please read the originial post: here

Share the post

How to Add Related Posts Widget in Blogger

×

Subscribe to Everything At Your Fingertips

Get updates delivered right to your inbox!

Thank you for your subscription

×