How to display related posts
Let's try to the following ways :
Step I
Entry on the Templates -> Edit HTML -> then enter the javascript code below to above the code </head> -> do not forget saved
Step II
Entry on the Templates -> Edit HTML -> do not forget to check the Expand Widget Templates -> find the code below.
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels'
var='label'>
<a expr:href='data:label.url'
rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != "true"'>,</b:if>
</b:loop>
</b:if>
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels'
var='label'>
<a expr:href='data:label.url'
rel='tag'><data:label.name/></a><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=10"'
type='text/javascript'/>
</b:if>
</b:loop>
</b:if>
After that, don't forget to save again.
Step III
<script type="text/javascript">
removeRelatedDuplicates();
printRelatedLabels();
</script>
<b:widget id='HTML99'
locked='false' title='Related Articles' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
Finish,,,don't forget to save your work,
Let's try it now,,,Happy Blogging,,^_^