WP Rentals Help WP Rentals Help

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

Tehnical: Random Order for Search Results – Half Map

6180 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

FAQTechnical how to

Related Articles

  • How to change the background color and logo for admin login page
  • How to redirect Instant Booking Button to WooComemrce Checkout Page
  • Tehnical: Redirect to Page Not found/ White screen on listing submission or edit
  • Technical – Invoices from My Bookings

HELP CATEGORIES

  • 61. General
  • 102. Installation & Basic Setup
  • 93. Installation FAQ
  • 404. How Booking Works
  • 145. User dashboard pages
  • 20Advanced Search Options
  • 3Blog Post
  • 9Custom Page Templates
  • 18Elementor Compatibility
  • 13Email Notifications
  • 19FAQ
  • 10Menu Options
  • 26Multi-Languages - 3rd party
  • 9Owner
  • 25Property / Listing
  • 21Shortcodes
  • 11Submit Form
  • 4Supported Maps
  • 93Technical how to
  • 5Third Party plugins
  • 3Translation
  • 13Widgets
  • 2WooCommerce Payments
  • 13WP Rentals Payment
  • 77WP Rentals Theme Options

Join Us On

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