Skip to main content

[bec_unit_info]

Displays provider-specific HTML snippets backed by stored sync data (bec_sync_payload). Keys differ per provider—for Kross the plugin ships amenities_grid and bedroom_arrangements.

Developers can register additional keys—see Unit info renderers (developers).


Where to put it​

Unit body templates beneath descriptions, tabs, or accordions managed by your theme.


Attributes​

AttributeDefaultMeaning
key(empty)Renderer id—required for meaningful output.
unit_id0Units post id; 0 uses current post.
default(empty)Shown when renderer missing / payload invalid—plain text (escaped).
Anything else—Passed through to renderer implementations (columns, font_pack, …).

Kross: amenities_grid​

[bec_unit_info key="amenities_grid"]
Pass-throughDefaultMeaning
font_packfont-1Icon font bundle slug registered via amenities asset filters.
columns2Grid columns 1–6 (desktop, ≥640px).
columns_mobile1Grid columns 1–6 below 640px. Sets CSS variable --bec-amenities-cols-mobile.
limit0 (all)Maximum icons after sorting labels—0 keeps entire list.
category(unset)Filter amenities by stored category slug (e.g. amenity).

Example:

[bec_unit_info key="amenities_grid" columns="3" columns_mobile="2" limit="12" category="amenity"]

bec_unit_info amenities_grid


Kross: bedroom_arrangements​

[bec_unit_info key="bedroom_arrangements"]
Pass-throughDefaultMeaning
font_packfont-1Same icon packs as amenities.
columns3Bedroom grid columns 1–6.
title(empty)Override section heading—leave blank to rely on translations.
show_titlehiddenSection title is hidden by default. Set show_title="1" to display it.

Example:

[bec_unit_info key="bedroom_arrangements" show_title="1" title="Sleeping arrangements"]

bec_unit_info bedroom_arrangements


CSS hooks (representative)​

  • Amenities stack: bec-amenities, bec-amenities__item, …
  • Bedroom stack: bec-bedrooms, bec-bedrooms__grid, …

Exact markup belongs to renderer output—inspect front-end HTML while styling.


Tips​

If output is always empty verify:

  1. key spelling matches registered renderer.
  2. Unit finished syncing (payload not empty).
  3. unit_id references correct post.