Title: Change for of property to random
Last modified: August 30, 2016

---

# Change for of property to random

 *  [fistcloud](https://wordpress.org/support/users/fistcloud/)
 * (@fistcloud)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/rand/)
 * Hi
    I want to change the code of prporty archive to random
 * this is the code of archive
 *     ```
       <?php
   
       global $wp_query;
   
       $default_sort = aviators_settings_get_value('properties', 'properties', 'default_sort');
       if(isset($_GET['filter_sort_by'])) {
           $default_sort = $_GET['filter_sort_by'];
       }
   
       echo View::render('archive-property.twig', array(
           'wp_query' => aviators_properties_filter(TRUE),
           'properties' => aviators_properties_filter(FALSE),
           'default_sort' => $default_sort,
       ));
       ```
   
 * thnks
 * _[ [No bumping please](http://codex.wordpress.org/Forum_Welcome#No_Bumping). ]_

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

 *  [ancawonka](https://wordpress.org/support/users/ancawonka/)
 * (@ancawonka)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/rand/#post-6846851)
 * Have you looked at the WP_Query documentation?
 * [https://codex.wordpress.org/Class_Reference/WP_Query](https://codex.wordpress.org/Class_Reference/WP_Query)
 * The code you posted looks like it’s from a custom theme, so it’s hard to say 
   what it’s doing to the WP_Query without seeing what the View::render function
   is doing.
 *  Thread Starter [fistcloud](https://wordpress.org/support/users/fistcloud/)
 * (@fistcloud)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/rand/#post-6847045)
 * thinks (yes)

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

The topic ‘Change for of property to random’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [fistcloud](https://wordpress.org/support/users/fistcloud/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/rand/#post-6847045)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
