コード例 #1
0
 public function get_property_category()
 {
     return epl_listing_meta_property_category_value($this->get_property_meta('property_category'));
 }
コード例 #2
0
$property_bathrooms = '';
$property_rooms = '';
$property_toilet = '';
$property_new_construction = '';
$property_garage = '';
$property_carport = '';
$property_parking = '';
$property_air_conditioning = '';
$property_pool = '';
$property_security_system = '';
if ('property' == $post_type || 'rental' == $post_type || 'rural' == $post_type) {
    //house features
    if (isset($meta['property_category'])) {
        if (isset($meta['property_category'][0])) {
            $property_category_id = $meta['property_category'][0];
            $property_category = epl_listing_meta_property_category_value($property_category_id);
        }
    }
    if (isset($meta['property_bedrooms'])) {
        if (isset($meta['property_bedrooms'][0])) {
            $property_bedrooms = $meta['property_bedrooms'][0];
        }
    }
    if (isset($meta['property_bathrooms'])) {
        if (isset($meta['property_bathrooms'][0])) {
            $property_bathrooms = $meta['property_bathrooms'][0];
        }
    }
    if (isset($meta['property_rooms'])) {
        if (isset($meta['property_rooms'][0])) {
            $property_rooms = $meta['property_rooms'][0];