WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Technical: How to Configure Guest Number Dropdown with Incremental Values

Technical: How to Configure Guest Number Dropdown with Incremental Values

6620 views

For Classic Guest Dropdown, the number of guests to show can be set from Theme Options > General > Booking Settings

Help https://help.wprentals.org/article/how-to-manage-guest-options/#b_wpestate_id

How to Change guest number in search with an incremental value

In case want to change the guest dropdown that appears in the search front end with a dropdown that shows options in incremental value, you need to know that list is  is populated by a function called in advanced_search.php.

$guest_list             =   wpestate_get_guest_dropdown();

The actual function that has the dropdown list  is:

wpestate_get_guest_dropdown – defined in function libs/help_functions.php.

Make the change in libs/help_functions.php to change advanced search dropdown. 

Ex: This new code

for($i=100 ; $i<2101;$i += 100)

Live code screenshot

This code would result into this dropdown style:

Change guest number in Submit Form

For submit property pages go into submit_templates/ property_description.php and property_description_first.php and  around line 170 you have


for($i=0; $i<15; $i++) {

Change the PHP code to include incremental values and change your values as you wish

Ex: This new code

for($i=100 ; $i<2101;$i += 100)

Live code screenshot

This code would result into this dropdown style:

Contact:

For contact owner form from property page go into libs\ajax_functions.php , function wpestate_show_contact_form_simple  and  around line 2208  you have

for ($i = 2; $i <= 14; $i++) {

Change the PHP code to include incremental values and change your values as you wish.

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