Title: Displaying posts randomly
Last modified: February 17, 2020

---

# Displaying posts randomly

 *  [cannapress](https://wordpress.org/support/users/cannapress/)
 * (@cannapress)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/displaying-posts-randomly/)
 * I’m interested having the post output of wordpress randomized instead of in reverse
   chronological order as it usually works. Any ideas on how to achieve this?
    -  This topic was modified 6 years, 3 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 3 months ago](https://wordpress.org/support/topic/displaying-posts-randomly/#post-12441237)
 * You can do this with a few lines of code:
 * [https://presscustomizr.com/snippet/show-random-posts-front-page/](https://presscustomizr.com/snippet/show-random-posts-front-page/)
 * HOWEVER, if your site uses any caching, the odds of anyone seeing different orders
   is pretty low because the first visitor will set the cache and then everyone 
   else will see it until the cache of the page expires.
 *  Thread Starter [cannapress](https://wordpress.org/support/users/cannapress/)
 * (@cannapress)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/displaying-posts-randomly/#post-12443180)
 * Thank you Steve!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Displaying posts randomly’ is closed to new replies.

## Tags

 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [cannapress](https://wordpress.org/support/users/cannapress/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/displaying-posts-randomly/#post-12443180)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
