Properties grid
The [rentfetch_properties] shortcode (documentation on default usage and options) uses a modular hook system to render each property in the grid. To replace the entire layout for each property, you need to override the default action hook.

Default Hook Structure
The shortcode calls do_action( 'rentfetch_do_each_property_in_archive' ) for each property, which by default executes rentfetch_each_property_in_archive_simple().
This default function outputs:
- Property images (via
rentfetch_do_property_imagesaction) - Specials text
- Property title
- Property location
Complete Layout Replacement
To replace the entire property layout with your custom design:
<?php
remove_action( 'rentfetch_do_each_property_in_archive', 'rentfetch_each_property_in_archive_simple' );
function hello_world_property() {
echo '<div>Hello World</div>';
}
add_action( 'rentfetch_do_each_property_in_archive', 'hello_world_property' );
Available Data Functions
Use these functions to retrieve property data in your custom layout (these are the ones used in the default layout):
rentfetch_get_property_title()– Property titlerentfetch_get_property_location()– Formatted locationrentfetch_get_property_specials_from_meta()– Special offers textrentfetch_get_property_permalink()– Property page URLrentfetch_get_link_target( $url )– Link target attribute- Additional functions available in
functions-properties.php