Blogging is best way to share our thoughts, views and experience with
worldwide users. In every blog or website clear navigation is necessary
because if your site users and visitors face difficulty while accessing
Your articles then its a great loss of your precious hard work because
if someone not able to easily find and read articles then how they know
what you have posted so its necessary to create a simple sitemap page
for all blogger post. By creating sitemap page you will link to many
different post within single post.This will helps your to reduce your
site bounce rate, increase Page view and PageRank also.
In this article i will help to create an simple sitemap page just based
on specific labels within a single page. This will help you to create a
collection of articles automatically according to particular label.
If you want to create sitemap page just follow below given simple steps.
Steps To create Sitemap Page
- Open Your Blogger Dashboard >> Then open your blog
- Go to Pages tab >> Create blank page
- Switch To Edit HTML in page editor.
- Then copy and paste below 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>
<h3>Blogger Tricks</h3>
<script src="http://www.safetricks.com/feeds/posts/default/-/Blogger?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script>
</ul>
Replace
Blogger Tricks with title name you want
SafeTricks.com with your blog URL
Blogger with your label name whose post you want to add.
- Make sure you and all the words same to your label, add them accurately according to uppercase or lowercase.
- In case of two words in label add them in this format Your%20Label.
- If you want to add others labels also in the same page simple copy code from <ul> -- </ul> from bottom and replace label and and place them just below the above coding then two different label post will start appearing in same post.
- Don't switch back to compose mode until you publish it.
No comments:
Post a Comment