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.
- Go to Blogger.com
- Go to Design or Template>Edit HTML
- Tick on Expand Widget
- Find
</head>
tag. - 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.
- Find <
data:post.body/>
and add the following code under it.<!-- Related post URL --> <b:if cond='data:blog.pageType == "item"'> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.isLast != "true"'> </b:if> <b:if cond='data:blog.pageType == "item"'> <script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels&max-results=6"' type='text/javascript'/></b:if></b:loop> <script type='text/javascript'> var maxresults=5; removeRelatedDuplicates(); printRelatedLabels("<data:post.url/>"); </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.
- Your Related post may seen like this:
Bye.
If you have any problem please comment.
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