skip to Main Content
support@webcodingplace.com

Simple Search Option in Real Estate Manager

Real Estate Manager WordPress Plugin introduces simple search option in version 10.4.1. It looks simple because it has only a search bar, but it is more powerful when it comes to search listings. Great thing is that you can program it yourself.

Please follow below steps to setup it.

  1. Create a page to display search form (we will call it Search Page)
  2. Create a page to display search results (we will call it Results Page)
  3. Now Paste shortcode [rem_search_results] in Results Page
  4. Copy the url of Search Results page (let say its http//some_site.com/results)
  5. Paste this shortcode in Search Page [rem_simple_search results_page=”http//some_site.com/results”] (remember to replace the Results Page url with your own)
  6. That’s it, it will render a search form like this

 

By default, text written in this field will be searched in the Property Titles and Contents. But you can make it more powerful.

 

Making it more powerful

You can configure the settings for this simple search field here

 

On the field Simple Search Method, you can provide each query per line.  Each query contains following values separated by commas respectively.

  1. text – The text you want user to type
  2. meta_key – Meta key or field name, according to that text
  3. is_number – If the text is number value, set it to true
  4. value – Hard-coded value, if not number.

Hope you don’t understand these 🙂 Don’t worry. I will try to explain it using examples.

Suppose we want visitors to type Rent in the search field and then display all those properties in results which have purpose set to Rent. We will provide following query in Simple Search Method.

Rent,property_purpose

Now, when typing Rent in search field, it will display all those properties which are for rent.

Let’s take another Example,

We want users to type 2 bedrooms and then display all properties having 2 bedrooms, following query will be used.

2 bedrooms,property_bedrooms,false,2

Wow, that’s great.

Now you may think that if you want visitors to search for 3, 4 or 5 bedrooms you may have to provide all those queries in each line like

3 bedrooms,property_bedrooms,false,3

4 bedrooms,property_bedrooms,false,4

Well, that’s not a good idea. So there is a work around. You can set the is_number to true and then it will automatically search for the numbers provided. Let’s apply it to our above example,

bedrooms,property_bedrooms,true

Now, visitors can type 3 bedrooms, 4 bedrooms, 5 bedrooms and search will work accordingly.

You can also use short names, suppose you want visitors to just type 3 baths, or 4 baths or 5 baths, use following

baths,property_bathrooms,true

Pretty Cool. The good thing is that you can provide multiple queries in each line in the setting Simple Search Method, 

Example:

Rent,property_purpose
bedrooms,property_bedrooms,true
baths,property_bathrooms,true

 

Working with Multi Language

You can allow visitors to search in their own language. Let’s take above Rent example for German Language. We will allow users of Germany to search Miete instead of Rent to display rented properties.

Miete,property_purpose,false,rent

Rameez

Wordpress Developer

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top