New Addition – Random Posts
EDIT – This post is outdated now since I have moved to a new theme.
A few weeks ago, my friend Santhosh posted a nice little tutorial on noob2geek on how to display random posts on your wordpress blog. I was thinking about implementing it on this blog for a long time, finally I got some free time and I have implemented the feature here on this blog.
I have made a few changes to the code given on that post on noob2geek. I wanted to display random posts at the bottom of every individual post. The method on n2g does 2 things, 1 is that it displays even the current post in the random posts. Secondly, it does not work well in-line to a post as we don’t store the $post variable anywhere. Hence, the code with the changes is given below.
Other Posts You Might Like
Hmm… The code looks a bit weird in blockquotes. I might have to change the way a block quote is displayed. Right now, check the wp-syntax version. Other’s are not working, unfortunately.








There's 3 Comments So Far
March 5th, 2010 at 20:46
nice one..
anything such for blogger blog ??
March 5th, 2010 at 21:25
No idea mate. Stopped using Blogger LONG time ago.
March 5th, 2010 at 23:24
Dude.. im really very much impressed with ur blog..
Share your thoughts, leave a comment!