Title: Grid layout randomise
Last modified: October 30, 2016

---

# Grid layout randomise

 *  [Beaverman](https://wordpress.org/support/users/beaverman/)
 * (@beaverman)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/grid-layout-randomise/)
 * Is there a way to randomise the post images on the grid layout rather than them
   be in post date order? I want it to be different each time the page loads.

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

 *  Theme Author [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * (@shaped-pixels)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/grid-layout-randomise/#post-8372985)
 * There’s a couple of ways…
 * 1. a plugin – [https://wordpress.org/plugins/wp-order-by/](https://wordpress.org/plugins/wp-order-by/)
   is one option of a few plugins
    2. child theme to override the theme template
   that does the layout
 * The first one is a plugin [https://wordpress.org/plugins/wp-order-by/](https://wordpress.org/plugins/wp-order-by/)
   but I’ve never used this so I am not sure if or how this will work. You can always
   try it though.
 * The other is to create a child theme, then copy the page template “template-imageposts.
   php” file into the child theme (and put it in the same location as the parent
   theme) “page-templates” folder. Then change the piece of code in the template
   file of **‘orderby’ => ‘date’** code to be **‘orderby’ => ‘rand’** as this reference
   describes:
 * [https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters](https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters)
    -  This reply was modified 9 years, 9 months ago by [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/).
 *  Thread Starter [Beaverman](https://wordpress.org/support/users/beaverman/)
 * (@beaverman)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/grid-layout-randomise/#post-8382135)
 * Thanks very much. The plugin seems to work just how I wanted it.

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

The topic ‘Grid layout randomise’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/morphology-lite/1.2.3/screenshot.
   png)
 * Morphology Lite
 * [Support Threads](https://wordpress.org/support/theme/morphology-lite/)
 * [Active Topics](https://wordpress.org/support/theme/morphology-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/morphology-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/morphology-lite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Beaverman](https://wordpress.org/support/users/beaverman/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/grid-layout-randomise/#post-8382135)
 * Status: not a support question