• Anna
    June 16, 2014 at 7:07 am #42526

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

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.