Q4VR: Search Form Setup

The search form is a flexible utility. The best way to implement a new search form is to mimic an existing form on another VR install or copying the data directly from the database’s site options table.

There are 3 possible areas for a search form to be displayed

  1. Below the navigation form
  2. In a shortcode* (see below on the limitations here)
  3. On the property listing page
    1. This page must include the calendar form, the guest picker form, and the submit button.
    2. This form only does an ajax ‘stay’ request for the given unit.

In order for search fields to be displayed on any of these, they must include that area in the ‘Layouts’ row.

The layouts row allows for customizing the size of the field for the given screen size.

More in-depth setup info in the Q4VR Settings Setup Guide

*Since shortcodes are not evaluated until very late in the page load process we have no way of telling the navigation form to not load. This results in 2 search forms being loaded on to the page. Because of this there is an option in the Vacation Rentals -> Search Form -> Search Options tab which tells WordPress whether or not to load the navigation search form on the home page (since we currently only load a shortcode search form on the home page).

Leave a Reply