BizriL blog

3.8.09     + Bagikan / Simpan Post Ini

How To Make Related Posts

People says sport is good for health, that why blog also must be health with blog-jogging as their sport :) On the way of blog-jogging i often visit a blog that i like with their posts, i take a rest while reading that post, maybe i am late to read that because that article is a continues one, i try to find the older related post but it has no tool too search and no list of related posts.

That gave an inspiration to make this post about how to make a related posts? What is related posts? Related posts is a list of older posts that have similar label, several blog only appearing some latest posts, sometimes it will be hard for visitors to find the older related posts, related posts will help visitors to find the older related posts with similar label, and of course if visitors likes to read your posts and easy to find older related posts, they must be come and come and come again, so its mean your blog/web traffic will be higher.

There's Many tricks to make a related posts, in this post i will tell you a trick and tutorial about how to make a related posts?

For blogger user, first you must LOGIN to your blogger account, in the blogger DASHBOARD page select LAYOUT, select EDIT-HTML sub-menu folder and check EXPAND WIDGET TEMPLATE.

Before you continue your steps applying this trick, better you make a backup from your current template, its more safe if there's something failure with your template.

Find ]]</b:skin> code and paste theses codes bellow right before ]]</b:skin> code.

border: 1px solid rgb(192, 192, 192);
padding: 5px;
background-color: #f0f0f0;

background-color: rgb(255, 255, 255);

If you use template without Read More function, you just find this codes:


If you use template with Read More function, you find this codes :

<b:if cond='data:blog.pageType == &quot;item&quot;'>

Copy and paste theses codes bellow after that codes above :

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div class='rbbox'>
<div style='margin:0; padding:10px;height:200px;overflow:auto;border:1px solid #ccc;'>
<div id='albri'/>
<script type='text/javascript'>
var homeUrl3 = &quot;<data:blog.homepageUrl/>&quot;;
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;
maxNumberOfPostsPerLabel = 10;
maxNumberOfLabels = 3;
function listEntries10(json) {
var ul = document.createElement('ul');
var maxPosts = (json.feed.entry.length <= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i < maxPosts; i++) {
var entry = json.feed.entry[i];
var alturl;
for (var k = 0; k <; k++) {
if ([k].rel == 'alternate') {
alturl =[k].href;
var li = document.createElement('li');
var a = document.createElement('a');
a.href = alturl;
if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
for (var l = 0; l <; l++) {
if ([l].rel == 'alternate') {
var raw =[l].href;
var label = raw.substr(homeUrl3.length+13);
var k;
for (k=0; k<20; k++) label = label.replace(&quot;%20&quot;, &quot; &quot;);
var txt = document.createTextNode(label);
var h = document.createElement('b');
var div1 = document.createElement('div');
function search10(query, label) {
var script = document.createElement('script');
script.setAttribute('src', query + 'feeds/posts/default/-/'
+ label +
script.setAttribute('type', 'text/javascript');
var labelArray = new Array();
var numLabel = 0;
<b:loop values='data:posts' var='post'>
<b:loop values='data:post.labels' var='label'>
textLabel = &quot;<>&quot;;
var test = 0;
for (var i = 0; i < labelArray.length; i++)
if (labelArray[i] == textLabel) test = 1;
if (test == 0) {
var maxLabels = (labelArray.length <= maxNumberOfLabels) ?
labelArray.length : maxNumberOfLabels;
if (numLabel < maxLabels) {
search10(homeUrl3, textLabel);
<script type='text/javascript'>RelPost();</script>

You can change blue typed "RELATED POSTS" words as you like, that is only a title.

Now it has finished, Save your template and view blog, check out how that copied codes working on your template, It must be appearing a list of related posts that has similar label right below your blog post.

Blog, Blogger, Google, Alexa, Bing, Yahoo, Search, SEO, PageRank, Traffic, Meta, Tag, Webmaster, Analyzer, Tutorial, Tips, Trick, Booster

facebook comments
logo32g 10 comments

10 komentar:

  1. wah.. keren banget...
    ditempatku juga ada postingan tentang related post..

  2. nice article! very informative

  3. Good bro...its nice article.. success for u

  4. keep it up good teacher

  5. mo tanya kak.. Related postnya berdasarkan apa ya kak ?? label apa judul postingan.. makasih ya kak dah sharing. Tia tunggu responnya :D

  6. BIZRIL1:09 PM

    @secret admirer: thanks
    @imoel: thanks, hope you'll better thanks
    @saung web: thanks, success 4 u too my friend
    @sam emie: hahaha.. thanks my student, thanks
    @cyntia: thanks, related post by label

  7. nice article bro...
    thanks for share it

  8. aku pernah coba dari "related article" dari blog lain, gagal melulu.
    tapi yang ini aku mau coba lagi. hasilnya ntar aku komen lagi. moga2 berhasil.
    tks udah sharing.

  9. baut blogger sanagat berguna informasi ini :D


Bizril Blog ™ adalah DoFollow blog
Tulislah komentar dengan menggunakan bahasa yang baik dan tidak menyinggung SARA (Suku, Agama, Ras dan Antar golongan). Usahakan agar komentar anda relevan dengan topik bahasan.
Boleh menyertakan 1 link pada komentar, tetapi jika lebih dari 1 link akan dihapus.
Terimakasih atas komentar anda.