Random Post Order: How To Display Your Posts In A Random Order
There are several reasons why you could want to display your WordPress blog posts in a random order… It could be because you are building your portfolio, a CSS gallery, a Flash Games website, a Video Website… Displaying your WordPress blog posts in a random order is a very simple trick to achieve.
If you want to randomize posts order on your homepage, you must edit your
index.php theme file.
if (have_posts()) :
Learn how I made $33,543 online in the past 12 months.
Simply input your best email below to get started.
And replace it with:
query_posts('orderby=rand'); if (have_posts()) :
You might also want to randomize posts in your category archives. If that’s the case, you must edit your
archive.php file (the steps are the same as above).