The [homerunner-property-related-properties]
shortcode displays a curated list of other properties available in the same city as the current property.
Basic Usage #
[homerunner-property-related-properties]
Parameters #
No parameters available.
Technical Notes #
- Only works on single property pages (post type: property)
- Features:
- Displays related properties from the same city
- Header section includes:
- Home icon
- Dynamic title “Explore other places in [City Name]”
- Property listing:
- Uses [homerunner-explorer] shortcode internally
- Shows up to 3 properties (per_page=3)
- 3-column layout on larger screens (xlcol=3)
- Filters by current property’s city
- Map and filter options disabled (filter=0 map=0)
- Scrollspy animation effect for smooth appearance
- Uses WordPress taxonomy functions:
- wp_get_object_terms() to get property_city terms
- Integration:
- Leverages the explorer shortcode for property display
- Automatically inherits explorer shortcode styling
- Renders using the property/related-properties.php template
- Wrapped in a UK-scoped container for consistent styling