[listing_search] Shortcode

The Listing Search feature allows you to output your listings on your pages and posts using a simple Shortcode. There are a variety of options available with each Shortcode in Easy Property Listings.

[listing_search]

You can output a search form to only search a specific listing type of property like this:

[listing_search post_type="property"]

Usage

There are several options that may be specified using this syntax:

[listing_search option1="value1" option2="value2"]

You can also print a list of listings in a template like so:

<?php echo do_shortcode('[listing_search post_type="property" search_price="on"]'); ?>

All Options

post_type
style
show_property_status_frontend
property_status
search_id
search_address
search_location
search_city
search_state
search_postcode
search_country
search_house_category
house_category_multiple
search_price_global
search_price
search_bed
search_bath
search_rooms
search_car
search_land_area
search_building_area
search_features
search_other
submit_label

Options

The following options are accepted:

post_type

specify which search tabs to display. The default is property post type. The option allows you to output multiple search tabs by comma separating them "all,property,land". You can also control the order of the tabs. 

When only one is used the tab will not display, also the search tab labels are set from Dashboard > Easy Property Listings > Settings > Search Widget: Tab Labels

Options:

  • all (this word when using multiple tabs will be what is displayed)
  • property
  • land
  • rental
  • rural
  • commercial
  • commercial_land
  • business
[listing_search post_type="all,property,land"]
style

specify the style of the search to output. The default will output a fixed width form. Options:

  • default
  • wide
  • slim
  • fixed
[listing_search style="wide"]
show_property_status_frontend

specify if the search form has the status drop down field. The default is off.

[listing_search show_property_status_frontend="on"]
property_status

restrict the search to only return results that are the status you specify. The default is any. Options:

  • any
  • current
  • leased
  • sold
[listing_search property_status="current,sold"]
search_id

specify the search by unique listing ID. Default is off.

[listing_search search_id="on"]
search_address

specify the search by listing post title. The more information imported into the title, the better the results. With imports we configure the title as the full property address. This enables street, city, suburb, zip/postcode search from one text entry field.  Default is off.

[listing_search search_address="on"]
search_location

specify the search by location taxonomy. Default is on.

[listing_search search_location="off"]
search_city

specify the search by city taxonomy. Default is off.

[listing_search search_city="on"]
search_state

specify the search by city. Default is off.

[listing_search search_state="on"]
search_postcode

specify the search by postcode/zip code. Default is off.

[listing_search search_postcode="on"]
search_country

specify the search by country. Default is off.

[listing_search search_country="on"]
search_house_category

specify the search by listing category. This is a dynamic field as each listing type has a different category options. Default is on.

[listing_search search_house_category="off"]
house_category_multiple

specify if to convert the above listing category into multiple select option field. Default is off.

[listing_search house_category_multiple="on"]
search_price_global

specify the search by price slider. Default is off.

[listing_search search_price_global="on"]
search_price

specify the search by price to and from. Default is on.

[listing_search search_price="off"]
search_bed

specify the search by bedrooms to and from. Default is on.

[listing_search search_bed="off"]
search_bath

specify the search by bathrooms. Default is on.

[listing_search search_bath="off"]
search_rooms

specify the search by rooms. Default is off.

[listing_search search_rooms="on"]
search_car

specify the search by parking spaces. Default is off.

[listing_search search_land_area="on"]
search_land_area

specify the search by land area. Default is off.

[listing_search search_land_area="on"]
search_building_area

specify the search by building area. Default is off.

[listing_search search_building_area="on"]
search_features

specify the search by listing features taxonomy. Default is off.

[listing_search search_features="on"]
search_other

specify the search by other listing features like, pool, air conditioning and security system. Default is on.

[listing_search search_other="off"]
submit_label

specify the submit button label. Default is "Search".

[listing_search submit_label="My Search"]