Add related post to increase traffic.It may help to increase your visitor  and page view .Today we are going to add related post titles with simple coding.Before doing so remember it is essential to label the page correctly otherwise related post will not be shown.One more thing it uses JavaScript.So  if browser will not support JavaScript related post will not be shown.

  1. Go to Blogger.com
  2. Go to Design or Template>Edit HTML
  3. Tick on Expand Widget
  4. Find </head> tag.
  5. Add this code just above it.
    <!-- Related post -->
    <script type='text/javascript'>
    var relatedpoststitle="You May Too like";
    </script>
    <script src='http://greensinker.googlecode.com/svn/Templates/relatedposts.js' type='text/javascript'></script>
    <!-- http://bloggerrounder.blogspot.com/ -->
    <!-- Related post End -->
    

    Where
    • In Line 2 you can change “You may Too Like” to Your own Title.
  6. Find <data:post.body/> and add the following code under it.
    <!-- Related post URL -->
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <b:loop values='data:post.labels' var='label'>
    <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=6&quot;' type='text/javascript'/></b:if></b:loop>
    <script type='text/javascript'>
    var maxresults=5;
    removeRelatedDuplicates(); printRelatedLabels(&quot;<data:post.url/>&quot;);
    </script>
    <div style="clear">Get this <a href="http:bloggerrounder.blogspot.com">Widget</a></div>
    </b:if>
    <!-- bloggerrounder.blogspot.com -->
    <!-- Related Post Ends -->
    
    Where
    • In line 8 change 5 to number of post which is to be shown.
  7. Your Related post may seen like this:
    Related Post

Bye.

If you have any problem please comment.

Admin of Blogger Rounder
Shirshak is the Administrator of the Blogger Rounder who thinks he will die next to Blogger. He is Completely devoted to Blogger and thinks Web Designing will makes is career.You contact using contact form from navigation tab to him.You can find him in Twitter.

Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.

0 comments on "Adding Related Post titles in Blogger.":

Post a Comment

We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam

Newer page Older Pager Home Pager

Pls share this page

Get this
Copyright © 2012 Blogger Rounder .Designed by Shirshak.
back to top