Title: Randomize images
Last modified: August 21, 2016

---

# Randomize images

 *  Resolved [gemba](https://wordpress.org/support/users/gemba/)
 * (@gemba)
 * [12 years ago](https://wordpress.org/support/topic/randomize-images-1/)
 * Hi, is there anyway to randomize the images rather than showing in the same order?
 * Thanks
 * [https://wordpress.org/plugins/full-screen-background-images/](https://wordpress.org/plugins/full-screen-background-images/)

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

 *  Plugin Author [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [12 years ago](https://wordpress.org/support/topic/randomize-images-1/#post-4982444)
 * You can edit the [plugin.php](http://plugins.svn.wordpress.org/full-screen-background-images/trunk/plugin.php)
   file of the plugin and add an additional line of code just after
 *     ```
       $args = array(
       	'post_type' => 'cpt_background',
       	'posts_per_page' => -1,
       	'update_post_term_cache' => false, // don't retrieve post terms
       	'update_post_meta_cache' => false, // don't retrieve post meta
       );
       ```
   
 * so as to look like:
 *     ```
       $args = array(
       	'orderby' => 'rand'
       	'post_type' => 'cpt_background',
       	'posts_per_page' => -1,
       	'update_post_term_cache' => false, // don't retrieve post terms
       	'update_post_meta_cache' => false, // don't retrieve post meta
       );
       ```
   
 * Try this and let me know if it works for you.
 *  Thread Starter [gemba](https://wordpress.org/support/users/gemba/)
 * (@gemba)
 * [12 years ago](https://wordpress.org/support/topic/randomize-images-1/#post-4982445)
 * Thanks, that works great! (Just missing a comma in the code if anyone else needs
   this)
 *     ```
       $args = array(
       	'orderby' => 'rand',
       	'post_type' => 'cpt_background',
       	'posts_per_page' => -1,
       	'update_post_term_cache' => false, // don't retrieve post terms
       	'update_post_meta_cache' => false, // don't retrieve post meta
       );
       ```
   
 *  Plugin Author [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [12 years ago](https://wordpress.org/support/topic/randomize-images-1/#post-4982446)
 * Yes, you are right about the comma! Glad to hear that works great!
 * A review would be really appreciated. Thanks!
 *  Plugin Author [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [12 years ago](https://wordpress.org/support/topic/randomize-images-1/#post-4982447)
 * Thank you sir! Topic is now resolved.

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

The topic ‘Randomize images’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/full-screen-background-images_83a449.
   svg)
 * [Full Screen Background Images](https://wordpress.org/plugins/full-screen-background-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/full-screen-background-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/full-screen-background-images/)
 * [Active Topics](https://wordpress.org/support/plugin/full-screen-background-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/full-screen-background-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/full-screen-background-images/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/randomize-images-1/#post-4982447)
 * Status: resolved