How to create a ‘random posts button’ in WordPress
Press a button and have WordPress serve you a random post!
The powerful & free WordPress open source blogging tool and content management system (CMS) based on PHP and MySQL, allows for various ways to output posts. One such way is by outputting a list of randomly selected posts using the MySQL
RAND() function for the
orderby parameter value in
But what if you simply want to avoid displaying random posts on a page and just want to link to a random post?
Read on for a how-to after the jump.