Rabu, 18 Juni 2014

How to Show Post By Selected Label in Blogger ? Tutorial with Photo

By Bappa Debnath


1 ) Go to Blogger 
2)  Click on Pages .
3)  Click on New Page




4)  Go to HTML of the Page .
5)  Paste the following code in the HTML :


<script type="text/javascript">
var numposts = 8;
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>
<h3> Title </h3>
<script src="http://www.bappadebnathbpd.blogspot.com/feeds/posts/default/-/Bappa%20Debnath?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts&amp;max-results=999"></script>
</ul>




6)  Change The following things : 

var numposts = 8; ( How many post you want to show per label ) 

<h3> Title </h3>  ( Give the Label Title ) 

<script src="http://www.bappadebnathbpd.blogspot.com/feeds/posts/default   
( Replace with your blog )

/-/Bappa%20Debnath( Change with your label  )


7)  Click On Publish . You re done :)





Warning : Don't Now click on COMPOSE  otherwise it wont work



Disclaimer : If you have any issue regarding any article/photo/post feel free to contact us . We will try our best to fix the problem or remove the post .

Tidak ada komentar:

Posting Komentar