[listing_search_commercial] Shortcode

Shortcode Parameters

When using shortcode parameters, their order is important. These are the parameters you can pass to the shortcode and what they do. The defaults for the [listing_search] shortcode are displayed.

'title' => '', // Freeform text
'post_type' => 'commercial', // Default is commercial
'style' => 'default', // Singular: default, wide, slim or fixed
'property_status' => '', // Singular: current / sold / leased or '' for any
'search_id' => 'off', // on or off
'search_location' => 'on', // on or off
'search_city' => 'off', // on or off
'search_state' => 'off', // on or off
'search_postcode' => 'off', // on or off
'search_country' => 'off', // on or off
'search_house_category' => 'on', // on or off
'house_category_multiple' => 'off', // on or off
'search_price' => 'on', // on or off
'search_land_area' => 'off', // on or off
'search_building_area' => 'off', // on or off
'search_com_authority' => 'off', // on or off
'search_com_listing_type' => 'off', // on or off
'search_com_rent_period' => 'off', // on or off
'search_com_tenancy' => 'off', // on or off
'submit_label' => 'Search' // Freeform text

How to place a search bar on your archive page if your theme does not have a widget area.

Some themes may not allow you to add a widget bar above your archive page. Not to worry this is where you can use the template system to add a search bar above your listing archive pages.

Copy the archive-listing.php file from plugins/easy-property-listings/lib/templates/themes/default/ and place it in your theme/child folder. Insert the following before or after the < header > tag depending on where you want to place the search bar.