You handle getting a random post by using the orderby
element in a find()
or in a Shortcode. If you set the orderby
element to RAND()
it will put the items in a random order, so then if you set the limit
to 1, it will only show one random item, or post.