Technical how to

Advanced Search Results Ordered by Price

I want to ask how can sort the results of the advanced search page, ordered by price is my goal. —answer— Instruction before 1.10 theme update advanced_search_results.php Look for ‘meta_key’ => ‘prop_featured’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’, Replace with ‘meta_key’ => ‘property_price’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘ASC’, Make sure you write PHP, not copy/paste. […]

Order by EDIT DATE

It is possible to add this new order by but you need to do code changes in a lot of places . If you are not skilled at coding you should hire someone since a bad code added on this area can have major impact. You have to add new order by way should by […]

How to make Similar Listings by the same City

Go to templates/similar_listings.php Remove or comment the code below //////////////////////////////////////////////////////////////////////////// /// compose taxomomy action array //////////////////////////////////////////////////////////////////////////// And below //////////////////////////////////////////////////////////////////////////// /// compose taxomomy categ array //////////////////////////////////////////////////////////////////////////// Screenshot Original code   After code is modified

Order Properties List by Publish Date

In wordpress there are 2 order situations by date: – first publish date – edit publish date We use order by first publish date and edit date is not considered. So default order will consider the first publish date. The technical solution is to modify the query orderby, but it’s sensitive when working with custom […]

Remove space between currency symbol and price

In order to remove space between currency and price you must make code changes in function wpestate_show_price from wpresidence/libs/help_functions.php The edit must be done in several places, same file. Do a file search by $currency name to find all the places.

How to limit google autocomplete suggestions to a single country

To achieve above you must add  component Restrictions in google_map_submit.js file   as displayed in  below screenshots: Add  componentRestrictions: {country: ‘fr’}  at line 221 2. Add  componentRestrictions: {country: ‘fr’}  at line 247 3. Add  componentRestrictions: {country: ‘fr’}  at line 273    

How to force google autocomplete to return results in one language

By default the API detects the browser settings of the user and set the language appropriately. To force google autocomplete to return results in one language must add language for autocomplete. Add highlighted code in css_js_include.php as displayed in  below screenshot:

How to add Whatsapp share button in default property page

To add Whatsapp share in property page add below code in single-estate_property.php file <a href=”whatsapp://send?text=<?php echo urlencode (get_the_title() .’ ‘. get_permalink()); ?>” data-action=”share/whatsapp/share”><i class=”fa fa-whatsapp”></i></a> Screenshot:

How to change design of Featured status and Full info button in default unit

To change design of Featured  status change CSS in this class: .featured_div { max-width: 85px; float: left; background-color: #f1bf7f; color: #333333; position: relative; left: 0px; font-size: 12px; border-radius: 0px; padding: 1px 18px; line-height: 17px; background-image: none!important; margin-bottom: 4px; } To change design of Full info button change CSS in these classes: .unit_details_x a, .unit_details_x { […]