Thursday, September 24, 2009

How to Create Random Post in Blogger (Blogspot)

random postsIn the previous article I wrote about how to add recent comment and recent post in Blogger, then how about random post, Is it possible to add random post in Blogger?.
Yes, you can create random post in blogger and you can see the result in my blog.

Follow the steps below for how to create random post in blogger.

1. Log into your Blogger account then select Layout -> Add a Widget .
2.Then paste this code into the text area

<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=5;var wordnumber=5;</script>
<script style="text/javascript" src="http://www.hotlinkfiles.com/files/2659415_vylfp/random-posts-with-summary_015721.js">
</script>
<script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>

3. You can change the number of the post to display by changing the number of the post in red text from the script above.

numofpost=5

4. You can change also the number of words by changing the blue text from the script above.

wordnumber=5

5. Save the template and view your blog , now you should have random post in your blog.

Happy Blogging!

Source Script from this blog.

Related Topics:
How to Show Tag Cloud in Blogger (Blogspot)
How to Hide / Remove Blogger Navigation bar
How To Change The Date Or Time For Your Article Post In Blogger (Blogspot)
Read More/Post Summaries - Jump Breaks Feature From Blogger
How to Create Random Post in Blogger (Blogspot)

7 comments: