The custom fields for properties are saved as an wordpress theme option. In order to view them all you can use this code

$custom_fields = get_option( 'wp_estate_custom_fields', true);

***the code above is not for production sites

If you did print the custom fields arrays you will see that we have stored the name, the label, type, order in the list and dropdown values if is the case. More exactly:
$name = $custom_fields[$i][0];
$label = $custom_fields[$i][1];
$type = $custom_fields[$i][2];
$order = $custom_fields[$i][3];
$dropdown_values = $custom_fields[$i][4];


The custom fields are saved into database in file theme-admin.php

update_option( ‘wp_estate_custom_fields’, $new_custom );

Before saving the fields are filtred for html code and ordered. If you want to allow html tags you need to add those tags into

$allowed_html   =   array();

at line 6. See how wp_kses function here :


The custom fields are displayed in wp admin using function custom_details_box in wp-content\plugins\wpresidence-code\post-types\property.php and on front end page using function estate_listing_details located in wp-content\themes\wpresidence\libs\listings_functions.php

If you want to display a custom field value and you don;t know it’s name you should open a property page in wp-admin with Chrome, right click and chose inspect element. The name of the field is the actual name of the input html element like in the screen capture below.


use this PHP function to print a custom field in a different location

get_post_meta($post->ID, 'custom_field_name', true);

MORE in wordpress codex  –

Property Default Fields name List

Price ->  property_price

After Price Label(*for example “per month”): -> property_label

Before Price Label(*for example “per month”): -> property_label_before