Label posts in list when click Blogger Menu link (menu–>label like "home")

step 1:-
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.


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(‘

  • ‘);
        document.write(posttitle);}
        if (standardstyling) document.write(‘
  • ‘);
    }




    marked   color first is the “website URL” second one is the” label name”
    step 2:-copy the code above code  to the new page like below screen shot and publish it.

    Image





    step 3:-after publish the page copy the link like below screen shot
    Image


    step 4:- go the the “settings->search preference” add “new direct”  and enter below this as per ur blog
                                                                             From:http://www.oracledba786.tk
                                                                                  To:http://www.oracledba786.tk





    Image





    step 5:- if u click “postgresdba”menu it will show like Label posts in list 

    Image



    Leave a comment