WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Tehnical: Random Order for Search Results – Half Map

Tehnical: Random Order for Search Results – Half Map

6255 views

First of all please be aware that random order can dramatically increase the page loading time – especially when other database queries are made like in advanced search case.  We DO NOT recommend this.

If you want to go further


- Open property_list_half.php file
- at line 133 you have $order_array        =   wpestate_create_query_order_by_array($order);
- replace $order with 99

The function  wpestate_create_query_order_by_array($order) is located at line 105 in libs\help_functions.php

Also, please note that the results are stored in a transient (cache) –  via the code at line 180 in property_list_half.php file

wpestate_set_transient_cache(  'wpestate_prop_list'.$transient_appendix, $prop_selection, 60*4*4 );

You can adjust the cache duration in seconds by adjusting this value 60*4*4

Technical how to

Related Articles

  • How to Disable WordPress Image Compression and Preserve Original Quality
  • How to Change the Default Categories Icon from Listing Card Unit
  • How to change the background color and logo for admin login page
  • How to redirect Instant Booking Button to WooComemrce Checkout Page

HELP CATEGORIES

  • 71. General
  • 102. Installation & Basic Setup
  • 393. How Booking Works
  • 20Advanced Search
  • 19Elementor Free & WP Rentals Studio
  • 13Email Notifications
  • 10FAQ
  • 14Installation FAQ
  • 10Menu Options
  • 27Multi-Languages - 3rd party
  • 32Owner & Renter
  • 9Page Templates
  • 24Property / Listing
  • 21Shortcodes
  • 4Supported Maps
  • 97Technical how to
  • 5Third Party plugins
  • 3Translation
  • 3WordPress Blog Post
  • 13WordPress Widgets
  • 12WP Rentals Payments
  • 78WP Rentals Theme Options

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API