Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Modify measurement system for Property Lot size only

This topic contains 3 replies, has 3 voices, and was last updated by  Anna 2 years, 9 months ago.

  • Author
    Posts
  • #26788

    Anna
    Keymaster

    single-estate_property.php

    Around line 173 you have this code

    $property_lot_size = intval( get_post_meta($post->ID, ‘property_lot_size’, true) );
    if ($property_lot_size != ”) {
    $property_lot_size = number_format($property_lot_size) . ‘ ‘.__(‘square’,’wpestate’).’ ‘ . $unit;
    }

    Replace with this:

    $property_lot_size = intval( get_post_meta($post->ID, ‘property_lot_size’, true) );
    if ($property_lot_size != ”) {
    $property_lot_size = number_format($property_lot_size) . ‘ ‘.__(‘acres’,’wpestate’);
    }

    • This topic was modified 3 years, 7 months ago by  Anna.
    • This topic was modified 3 years, 7 months ago by  Anna.
  • #100489

    purecon
    Participant

    Where is this in WP-residence 1.061??

  • #101673

    Alegret
    Participant

    I have version 1.061 also. I don’t see this code in single-estate_property.php. How can change the lot size to acres?

    Thank you,
    Beth

    • This reply was modified 2 years, 9 months ago by  Alegret.
  • #101913

    Anna
    Keymaster

    Hi,

    In WP Residence the file is in libs/listing_functions.php

    Thank you
    Anna

You must be logged in to reply to this topic.