WP Residence Help WP Residence Help

  • WpEstate
  • How to Build Your Website
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical how to : change property page details

Technical how to : change property page details

5775 views 0

The property page is displayed using the single-estate_property.php file.

On the property page you can pick between two types : horizontal and vertical.

You can set a global slider value (to be applied on all listings) or you can pick one per page. This is the code that loads the slider:

if ($local_pgpr_slider_type_status=='global'){
$prpg_slider_type_status= esc_html ( get_option('wp_estate_global_prpg_slider_type','') );
if($prpg_slider_type_status=='vertical'){
get_template_part('templates/listingslider-vertical');
}else{
get_template_part('templates/listingslider');
}
}elseif($local_pgpr_slider_type_status=='vertical') {
get_template_part('templates/listingslider-vertical');
}else{
get_template_part('templates/listingslider');
}

*** the horizontal slider is in templates/listingslider.php while the vertical slider is in templates/listingslider-vertical.php

The property page has 2 main formats – accordion and tabs. This is the code that loads one of the version:

$local_pgpr_content_type_status = get_post_meta($post->ID, 'local_pgpr_content_type', true);
if($local_pgpr_content_type_status =='global'){
$global_prpg_content_type_status= esc_html ( get_option('wp_estate_global_prpg_content_type','') );
if($global_prpg_content_type_status=='tabs'){
get_template_part ('/templates/property_page_tab_content');
}else{
get_template_part ('/templates/property_page_acc_content');
}
}elseif ($local_pgpr_content_type_status =='tabs') {
get_template_part ('/templates/property_page_tab_content');
}else{
get_template_part ('/templates/property_page_acc_content');
}

The property page tab content is in templates/property_page_tab_content.php while the accordion is in /templates/property_page_acc_content.php

The next block in this file is the one that loads or not the sidebar agent – adds the agent card on the sidebar
$sidebar_agent_option_value= get_post_meta($post->ID, 'sidebar_agent_option', true);
$enable_global_property_page_agent_sidebar= esc_html ( get_option('wp_estate_global_property_page_agent_sidebar','') );
if ( $sidebar_agent_option_value=='global' ){
if($enable_global_property_page_agent_sidebar!='yes'){
get_template_part ('/templates/agent_area');
}

}else if($sidebar_agent_option_value !=’yes’){
get_template_part (‘/templates/agent_area’);
}

And in the end we have the similar listing block

get_template_part ('/templates/similar_listings');

 

The actual content page

As explained before the property page tab content is in templates/property_page_tab_content.php while the accordion is in /templates/property_page_acc_content.php.

In both of these file the content is displayed using various functions . For ex in property_page_acc_content.php we have

wpestate_energy_save_features($post->ID);  / / show energy details
estate_listing_address($post->ID); //  - shows address details
estate_listing_details($post->ID); // - show property details (default and custom fields)
estate_listing_features($post->ID); // show property Features and Amenities
wpestate_virtual_tour_details($post->ID);   //  show  Virtual Tour
wpestate_walkscore_details($post->ID); // show walkscore for property
estate_floor_plan($post->ID); //- show floor plans
wpestate_yelp_details($post->ID);    //  - show yelp details
wpestate_show_stat_accordion();    //  -show Page Views Statistics

All the above functions are located in libs/listing_functions.php

—

Ex: Duplicate Energy Class

The code is in wpresidence/libs/listing_functions.php

Technical how to | Custom Code Required

Related Articles

  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization
  • Understanding WPResidence Header Types: An Overview
  • Customizing the WPResidence Logo Display

WP Residence Documentation

  • 1. General
    • How to Get Support
    • Get your buyer license code.
    • Use SSL / https
    • Server / Theme Requirements
  • 2. Installation
  • 3. Installation FAQ
  • 4. Advanced Search
    • Advanced Search Display Settings
    • Advanced Search Form
    • Geolocation Search for Half Map
    • Save Search Theme Options
    • Advanced Search Colors
  • 5. Agent, Agency & Developers
  • 6. Property Page
  • 7. Properties List
  • 8. Property Taxonomies
  • WpResidence Elementor Studio
  • 10. Blog Posts & Blog List
  • 11. Shortcodes
    • Contact Form
    • Featured Agency/Developer
    • Membership Packages
    • Testimonials
    • Google Map with Property Marker
    • Listings per Agent, Agency or Developer
    • Display Categories
    • Agent List
    • Recent Items Slider
    • Recent items
    • List Properties or Articles by ID
    • Featured Agent
    • Featured Article
    • Featured Property
    • Login & Register Form
    • Icon Content Box Shortcode
  • 12. Widgets
  • Theme Options
    • General Settings
    • User Types Settings
    • Appearance
    • Logos & Favicon
    • Header
    • Footer Style and Colors
    • Price & Currency
    • Property Custom Fields
    • Features & Amenities
    • Listing Labels
    • Theme Slider
    • Permalinks
    • Splash Page
    • Social & Contact
    • Map Settings
    • Pin Management
    • How read from file works
    • General Design Settings
    • Custom Colors Settings
    • Header Design & Colors
    • Mobile Menu Colors
    • User Dashboard Colors
    • Print PDF Design
    • Property, Agent, Blog Lists Design Settings
    • Sidebar Widget Design
    • Font management
    • How to add custom CSS
    • Custom Property Card Unit – Beta version
    • Email Management
    • Import & Export theme options
    • reCaptcha settings
    • YELP API Integration
    • iHomefinder Optima Express IDX
    • MEMBERSHIP & PAYMENT Settings
    • Property Submission Page
    • PayPal Setup
    • Stripe Setup
    • Wire Transfer Payment Method
  • Translation
  • FAQ
  • Pages
  • Header
  • Footer
  • Google or Open Street Maps
  • Payment Options
  • Plugins
    • Included Plugins
    • Third Party Plugins – IDX Compatibility
    • Third Party Plugins – Multi Languages
    • Third party Plugins – Other
  • Technical
    • Technical how to | Custom Code Required
    • Technical: Child Theme

Join Us On

Powered by WP Estate - All Rights Reserved
  • WpEstate
  • How to Build Your Website
  • Video Tutorials
  • Client Support
  • API