Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM Default Fields removed from WP RESIDENCE

This topic contains 0 replies, has 1 voice, and was last updated by  Anna 3 years, 4 months ago.

  • Author
    Posts
  • #42526

    Anna
    Keymaster

    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 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>
    • This topic was modified 3 years, 4 months ago by  Anna.
    • This topic was modified 3 years, 4 months ago by  Anna.
    • This topic was modified 3 years, 4 months ago by  Anna.
    • This topic was modified 3 years, 3 months ago by  Anna.
    • This topic was modified 2 years, 10 months ago by  Anna.
    • This topic was modified 2 years, 10 months ago by  Anna.
    • This topic was modified 2 years, 10 months ago by  Anna.
    • This topic was modified 2 years, 10 months ago by  Anna.
    • This topic was modified 2 years, 10 months ago by  Anna.
    • This topic was modified 2 years, 4 months ago by  Camelia Support Team - WP Estate.
    • This topic was modified 1 year, 11 months ago by  Camelia Support Team - WP Estate.

You must be logged in to reply to this topic.