V1.5.0 Child Template Updates

RealtyPress v1.5.0 is the first version that has required changes to the default template files since v1.0.0.

If you created a child of RealtyPress template files pre v1.5.0 they will need to be updated to support some of the new features in v1.5.0.

We have provided the following guide to help you update your child template but it is ultimately your responsibility to do so.

Before modifying your child template always create a backup first.

Files that required editing are:

Single Listing Templates
property-single-view.php
partials/property-single-agent-h.php
partials/property-single-agent-v.php
partials/property-single-details.php
partials/property-single-intro.php
partials/property-single-photos.php

Property Result Templates
partials/property-result-grid.php
partials/property-result-list.php

Shortcode Templates
shortcodes/shortcode-property-carousel.php
shortcodes/shortcode-property-slider.php
shortcodes/shortcode-listing-preview-h.php
shortcodes/shortcode-listing-preview-v.php
shortcodes/shortcode-listing-favorites.php

CSS
css/styles.css
css/shortcodes.css

Other Changes

 


 
property-single-view.php

Find this line.

Wrap this line in the following if statement as below.


 
partials/property-single-agent-h.php

Find the following block of code

Replace the above with the following.


 
partials/property-single-agent-v.php

Find the following block of code

Replace the above with the following.


 
partials/property-single-details.php

Find the following line.

Update as below.


 
partials/property-single-intro.php

Find the following block of code.

Update as below.


 
partials/property-single-photos.php

You will find 3 occurences of the following in the file.

Move “$i = 0;” as below for all 3 occurences.

You will also find 3 occurences of the followin line.

Replace the $sequence_id var with $i as below for all 3 occurences.

Find the following which is located around line 106

Insert the SOLD if statement between the above tags as below.


 
partials/property-result-grid.php

First we update the columns being retrieved to include CustomListing and Sold values.

Find these lines

Add “CustomListing, Sold” to the $property_cols string.


 
partials/property-result-list.php

Next we need to adjust the output of transaction type and open house ribbons as well as pricing.

Find the following block of code

Wrap this block in the following if statement as below.


 
shortcodes/shortcode-property-carousel.php

Find this line (approx. line 49)

Replace with the following


 
shortcodes/shortcode-property-slider.php

Find this line (approx. line 48)

Replace with the following.


 
shortcodes/shortcode-listing-preview-h.php

We need to adjust the output of transaction type and open house ribbons as well as pricing.

Find the following block of code

Wrap this block in the following if statement as below.


 
shortcodes/shortcode-listing-preview-v.php

We need to adjust the output of transaction type and open house ribbons as well as pricing.

Find the following block of code

Wrap this block in the following if statement as below.


 
shortcodes/shortcode-listing-favorites.php

We need to adjust the output of transaction type and open house ribbons as well as pricing.

Find the following block of code

Wrap this block in the following if statement as below.


 
css/styles.php

Add the following CSS.

The following updates must also be made.

Find the following CSS

Update to

Find the following CSS

Update to


 
css/shortcodes.css

Add the following CSS.


 
Other Changes

The following files;

partials/property-result-search-form-h.php
partials/property-result-search-form-v.php
partials/property-filter-location-form.php
shortcodes/shortcode-search-form-h.php
shortcodes/shortcode-search-form-v.php
shortcodes/shortcode-search-location-form.php

Require the following MLS reference.

To be replaced with.

Leave a Comment