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. [Read more →]