Show all post as list of a label to Blogger

author photo

Label posts in list to Blogger

Hello friends, this awesome trick of Blogger where you can show your posts of specific label as list form. To do this just copy this code and paste on page, post or sidebar of your Blog.
Snapshot of working code.
 Just replace the yellow color marked text from code.

Copy this code:

<script type="text/javascript">
var numposts = 100;
var standardstyling = true;

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://www.vikinspire.com/feeds/posts/default/-/Label?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts&amp;max-results=999"></script>
</ul>

Keywords: posts in list of label, show posts as list in Blogger, Show all post as list of a label to Blogger, Label posts as list form to Blogger, Blogger Tricks, Blogger tips, blogging methods, Blogger code, blogger script.

This post have 2 comments

avatar
AMIT KUMAR delete Wednesday, March 22, 2017

thanks :) !!! it helped me ..........

Reply

Please note before commenting on this page.
1. Don't comment as for advertisement purpose.
2. Don't hyperlink your website inside comment box.
3. Abuses are strictly prohibited.
4. If necessary, you can post the only URL without any text hyperlink.
EmoticonEmoticon

Next article Next Post
Previous article Previous Post