Create Custom Property Listing Styles
You can create custom property listing styles by following this.
- Create a template in PHP extension.
- Name it with style prefix like style9.php
- Create a directory in the root of your theme (or child theme) named rem
- Put style9.php template file in this directory
- Use 9 in style attribute of shortcodes to use it
- You can use the same method to override templates also
Suppose we created a template file named style9.php having following inner contents
<div class="landz-box-property box-grid mini"> <?php do_action( 'rem_property_ribbon', $property_id ); ?> <a target="<?php echo $target; ?>" class="hover-effect image image-fill" href="<?php echo get_permalink($property_id); ?>"> <span class="cover"></span> <?php do_action( 'rem_property_picture', $property_id ); ?> <h3 class="title"><?php echo get_the_title($property_id); ?></h3> </a> <span class="price"> <?php if (get_post_meta( $property_id, 'rem_property_price', true ) != '') { ?> <?php echo rem_display_property_sale_price($property_id); ?> <?php } ?> </span> <div class="footer"> <a target="<?php echo $target; ?>" class="btn btn-default" href="<?php echo get_permalink($property_id); ?>"><?php _e( 'Details', 'real-estate-manager' ); ?></a> </div> </div>
Put this file in wp-content/themes/your-activated-theme/rem/
Now use the following shortcode to use it.
[rem_list_properties style="9"]