The [homerunner-property-amenities]
shortcode displays a comprehensive list of amenities and features available at the property, with a grid layout and expandable view.
Basic Usage #
[homerunner-property-amenities]
Parameters #
No parameters available.
Technical Notes #
- Only works on single property pages (post type: property)
- Features:
- Displays property amenities from property_amenity taxonomy
- Initial grid view shows first 9 amenities
- Each amenity includes:
- Check icon
- Amenity name
- Layout:
- Responsive grid (1 column mobile, 3 columns on small/medium screens)
- Grid match for consistent heights
- Flex layout for icon and text alignment
- “Show All” button that opens a modal with:
- Complete list of all amenities
- Scrollable container with max height
- Same grid layout as main view
- Modal features:
- Close button
- Overflow auto for scrolling
- Min/max height constraints
- Section title “Features and Amenities”
- Uses WordPress taxonomy functions:
- get_the_terms() to fetch property_amenity terms
- Renders using the property/amenities.php template
- Wrapped in a UK-scoped container for consistent styling