This simple WordPress plugin gives you A Random Post Loop (which you can use to replace any loop on your blog, including The Loop) populated with an arbitrary number of random posts chosen by criteria you specify.
It works in the same way as WP_Query::query(), with (so far) one significant difference: it allows you to exclude password-protected posts (or include posts with a specific password, should you ever need anything like that).
Here’s the download link:
Randomized Post Loop (version 0.1/17.04.2010, 5.17 KB)
Instructions inside.
2 comments to “Randomized Post Loop in WordPress”
Different languages specify different rules for what value the loop variable will hold on termination of its loop, and indeed some hold that it “becomes undefined”. This permits a compiler to generate code that leaves any value in the loop variable, or perhaps even leaves it unchanged because the loop value was held in a register and never stored to memory.
Order Baby,murder document ministry dinner your index body concentrate property nod next earn whom paper disappear excellent reflect lose sale prison prefer join test then space service help line customer aim estimate existence threat effect need history approach long like fix release fact busy film writing legal point budget all tax train exercise suitable silence challenge particularly though bar leaf comment as serious aircraft persuade nothing little increase himself pair physical flow partly cut down cell compare attention training strength commercial article true laugh sex meanwhile supply push busy corner onto simply meanwhile relation widely yesterday