Title: Randomize Post Order
Last modified: August 20, 2016

---

# Randomize Post Order

 *  [Luke](https://wordpress.org/support/users/lukedefreitas/)
 * (@lukedefreitas)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/randomize-post-order/)
 * HI there,
 * I have different “categories” pages. I would like to know how I can randomise
   the post order instead of displaying chronologically. I can’t figure out how 
   to do that.
    any idea?

Viewing 1 replies (of 1 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/randomize-post-order/#post-2156282)
 * Do a query posts on the loop:
    [http://codex.wordpress.org/Function_Reference/query_posts](http://codex.wordpress.org/Function_Reference/query_posts)
   [http://codex.wordpress.org/Function_Reference/WP_Query#Order_.26_Orderby_Parameters](http://codex.wordpress.org/Function_Reference/WP_Query#Order_.26_Orderby_Parameters)
 *     ```
       <?php query_posts( 'orderby=rand' ); ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Randomize Post Order’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/randomize-post-order/#post-2156282)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
