WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical how to remove default property fields

Technical how to remove default property fields

4326 views 3

If you wish to delete the fields that are not in the custom fields list, these are the files to modify

compare_listings.php – compare page
libs/listing_functions.php – front end page
libs/property.php – admin edit property page
templates/submit_templates/ – submit form

Example:

Remove Bedrooms from property front page:

Go to libs/listing_functions.php

Comment or delete this code:

line 285

$property_bedrooms = floatval ( get_post_meta($post_id, 'property_bedrooms', true) );

line 317

 if ($property_bedrooms != ''){
        $return_string.= '<div class="listing_detail col-md-4"><strong>'.__('Bedrooms','wpestate').':</strong> ' . $property_bedrooms . '</div>'; 
    } 

Remove Bedrooms from compare

go to compare_listings.php

Delete or comment code at line 62

    $property['property_bedrooms']  =   intval( get_post_meta($post->ID, 'property_bedrooms', true));

And line 121

   =>__('rooms','wpestate'),
                        'property_bedrooms'

Remove Bedrooms from front end submission

in templates/submit_templates/property_details.php

Delete or comment Line 31

    <p class="half_form half_form_last">
        <label for="property_bedrooms "><?php _e('Bedrooms','wpestate');?></label>
        <input type="text" id="property_bedrooms" size="40" class="form-control"  name="property_bedrooms" value="<?php print $property_bedrooms;?>">
    </p>

Css Workarounds:

Remove country from the property page

#accordion_prop_addr .listing_detail:nth-of-type(6) {
    display: none!important;
}
Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 53FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 24Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 6Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 32Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 7Technical: Child Theme
  • 86Theme Options & Global Settings
  • 7Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate / WPResidence Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API