WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code / Technical how to : Default property fields

Technical how to : Default property fields

4666 views 0

Besides the default properties, details like title, images or description the WPResidence features some real estate specific fields like address, geo coordinates, price, size etc…

These default fields are set in wp-content\plugins\wpresidence-core\post-types\property.php  with the function details_estate_box (). These fields are saved as meta options of the custom post type property.

To retrieve these fields you need to use the get_post_meta.

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

The default fields are

property_price – property price,
property_label – label that appears after the price,
property_label_before – label that appears before price,
property_size – property size,
property_lot_size – property lot size,
property_rooms – property rooms,
property_bedrooms – property bedroomns,
property_bathrooms – property bathrooms,
embed_video_type – video type (vimeo or youtube),
embed_video_id – video id
owner_notes – owner notes
property_latitude – property latitude,
property_longitude – property longitude,
google_camera_angle – google street view camera angle,
keep_min – keep google map at min size,
property_google_view – enable google street view
page_custom_zoom – google maps zoom
property_agent – property agent id,
property_address – property address,
property_zip – property zip,
property_state – property state,
property_country – property country,
property_status – property status,
prop_featured – is property featured (1 or 0)

See also the custom fields explanation https://help.wpresidence.net/article/technical-how-to-custom-fields/

Technical how to | Custom Code

Related Articles

  • How to Add Custom Fields to the Login, Register and Forgot Password Forms
  • 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
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 111 Installation & Changelog
  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 15Footer
  • 37Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 50Multilingual Websites – WPEstate Translate (Included)
  • 21Pages & Page Templates
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Single Page
  • 32Search & Filtering
  • 171Technical how to | Custom Code
  • 9Technical: Actions and filters
  • 7Technical: Child Theme
  • 85Theme Options & Global Settings
  • 6Theme Translation & Localization
  • 28Third Party Plugins Compatible
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 9WPResidence Elementor Studio
  • 39WPResidence Elementor Widgets
  • 79WPResidence FAQ

Join Us On

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