How do I display posts categories / specific label in the sidebar of the blog? bloggers might have a trick to this one. But no problem, we will discuss again to help my friend who do not know how to display posts by category / specific labels in the sidebar of the blog.

Good, just steps are as follows:
1. As usual login blogger.com
2. Select Layout ---> Add Gadget ---> HTML / JavaScript
3. Copy-Paste the code below,
<Div style = "border: 1px solid rgb (000, 000, 000); height: 100px; overflow: auto; padding: 10px; width: 90%;">
<Script style = "text / javascript">
var numposts = 9;
var standardstyling = true;
</ Script>
<Script type = 'text / javascript "> function showrecentposts (json) {
for (var i = 0; i <numposts; i ++) {
var entry = json.feed.entry [i];
var posttitle = entry.title. $ t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k <entry.link.length; k ++) {
if (entry.link [k] .rel == 'alternate') {
posturl = entry.link [k] .href;
break;
}}
posttitle = posttitle.link (posturl);
if (standardstyling) document.write ( '<li>');
document.write (posttitle);}
if (standardstyling) document.write ( '</ li>');} </ script>
<ul> <script src = "http://bloggernias.blogspot.com / feeds / posts / default / - /label name? orderby = published & alt = json-in-script & callback = showrecentposts & max-results = 500"> </ script> </ ul>
</ Div>
4. Then Save
Information:
- http://bloggernias.blogspot.com replace it with the name of your blog address
- label name: rename the label / category we want to show
- 9: The number of posts to be displayed in the sidebar
- 500: Number of posts are indexed


ConversionConversion EmoticonEmoticon