Technical how to

How To Keep Floor Plan Accordions Closed By Default On Property Page

Replace this code: $(‘.front_plan_row’).click(function(event){ event.preventDefault(); $(this).parent().find(‘.front_plan_row_image’).slideToggle(); // $(this).next().slideDown(); }) with this code: $(‘.front_plan_row’).click(function(event){ event.preventDefault(); $(this).parent().find(‘.front_plan_row_image’).slideUp(); $(this).next().slideDown(); }) in control.js at line 887

Property Card – How to open in new page

For both WpResidence and WpEstate theme you need to edit the file templates/property_unit.php For the links that want to open in a new page you need to add target=”_blank”. Please note that there are several places where you need to make this change – Look for the

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 […]

TECHNICAL HOW TO: Add a new custom field for agent

There are 2 places where you need to add new agents fields – in wp-admin  and on profile page front end For  wp-admin – on add/edit agent page  you have the function  estate_agent  that keeps all the input forms   Just duplicate the form for an already made field.   Then in metaboxes.php file add […]

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: