October 14, 2010

How to Create Related Posts on Blogspot

Bookmark and Share

Related Post is an article of inter-related and linked to other posts.This feature is very important to be seen and noticed. With the "Related Posts" would be easy for visitors to get a post-related.

Here are the steps to create Related Posts:

1. Login to Blogger
2. Click “Design” >> “Edit HTML”
3. Check “Expand Widget Templates” as shown in this picture below


4. Now, search this code :
<p><data:post.body/></p>

For some templates the code shown like this code:
<div class='post-body>

Note: If you found there are 2 same code, just paste the script below the first code (as shown in the picture below)

5. After you found it, copy the script 1 and paste below this code :
“<p><data:post.body/></p>” or below “<div class='post-body>”

Script 1
<!--Related Posts Scripts1 Start-->
<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>
<!--Related Posts Scripts1 Start-->

6. The next step, search this code “</head>” and then copy the script 2 below and paste above the “</head>” (as shown in the picture below)

Script 2
<!--Related Posts Scripts 2 Start-->
<style> #related-posts { float : left; width : 540px; margin-top:20px; margin-left : 5px; margin-bottom:20px; font : 11px Verdana; margin-bottom:10px; } #related-posts .widget { list-style-type : none; margin : 5px 0 5px 0; padding : 0; } #related-posts .widget h2, #related-posts h2 { font-size : 20px; font-weight : normal; margin : 5px 7px 0; padding : 0 0 5px; } #related-posts a { text-decoration : none; } #related-posts a:hover { text-decoration : none; } #related-posts ul { border : medium none; margin : 10px; padding : 0; } #related-posts ul li { display : block; background : url(&quot;http://i1198.photobucket.com/albums/aa454/junh24/rss.png&quot;) no-repeat 0 0; margin : 0; padding-top : 0; padding-right : 0; padding-bottom : 1px; padding-left : 21px; margin-bottom : 5px; line-height : 2em; border-bottom:1px dotted #cccccc; } </style> <script src='http://167bf0ac.linkbucks.com' type='text/javascript'/>
<!--Related Posts Scripts 2 End-->

7. Save Template.

7 comments:

Hi, i visited your blog also. i be your follower. check my blogs sometimes. thanks anyway. Greetings from Indonesia

Thank you for visiting my blog Sport Cars, I really appreciate it. I also hope you will visit my blog sometimes later...

tq2... saya dah edit dekat blog tadi.. tapi cuma tak keluar lagi.. mungkin lambat sikit kot

A nice tutorial. A well-designed related post increases pageviews and minimize bounce rate.

Nice post. Keep writing.

Thanks!
Prakash
http://medicalinformationforyou.blogspot.in/

cool. I will to try it. thanks so much.

Post a Comment