WP Rentals Help WP Rentals Help

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

Random Order for Search Results – Half Map

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 in search_functions3.php file you have function wpestate_arguments_builder  http://prntscr.com/oplurg
In this function you have an $args array ( in 2 places) : http://prntscr.com/oplw78  . In both places  replace   ‘orderby’         => ‘meta_value’, with   ‘orderby’         => ‘rand’,  .
FAQTechnical how to

Related Articles

  • Technical: Remove per guest and per guest and night from custom booking options
  • Technical: How to save Area independent from City
  • Technical: Change the map radius circle color
  • Technical: Location of MetaTag Description in Taxonomy Pages

HELP CATEGORIES

  • 61. General
  • 102.Installation & Basic Setup
  • 93. Installation FAQ
  • 374. How Booking Works
  • 165. User dashboard pages
  • 14Advanced Search Options
  • 3Blog Post
  • 11Custom Page Templates
  • 3Elementor Compatibility
  • 13FAQ
  • 8Menu Options
  • 28Multi-Languages - 3rd party
  • 9Owner
  • 22Property / Listing
  • 19Shortcodes
  • 12Submit Form
  • 5Supported Maps
  • 91Technical how to
  • 5Third Party plugins
  • 4Translation
  • 14Widgets
  • 2WooCommerce Payments
  • 12WP Rentals Payment
  • 68WP Rentals Theme Options
  • 14Wp Rentals Updates
Follow Us : Powered by WordPress and WP Estate-All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpEstate