Skip to content

Dynamic Data (Block Bindings)

With WordPress Block Bindings you connect the editor’s standard blocks directly to a property’s data. A paragraph then shows the purchase price, a button links to the floor plan, an image block shows the cover photo — without you having to use a dedicated WP-ImmoMakler block for it.

This is the counterpart to Elementor’s and Bricks’ Dynamic Tags, and Enfold’s and Divi’s Dynamic Content: the same fields, just in the WordPress editor.

  1. In the editor, select the block you want to connect — Paragraph, Heading, List item, Image, or Button.
  2. Open the Attributes panel in the right sidebar.
  3. Select the attribute that should receive the data (for a button, for example, URL or Text).
  4. Choose one of the WP-ImmoMakler groups from the list, then the field you want within it.

The block shows the value of the property currently being displayed. On a template page, that is the property being viewed, not the template page itself.

GroupContent
WP-ImmoMakler: PropertyAll property data, including areas and prices
WP-ImmoMakler: Energy certificateThe energy certificate fields, for all countries
WP-ImmoMakler: Contact personThe details of the contact person
WP-ImmoMakler: TextsHeading, subtitle, listing type, status, the four description texts, the amenities as a list, plus the list view’s heading and search result title
WP-ImmoMakler: LinksProperty detail view, PDF print view, first PDF attachment, first PDF attachment with “floor plan” in the title or file name, gallery page, property list view, and a “back to the list view” link that returns visitors to the list they came from and scrolls there to the property’s card
WP-ImmoMakler: ImagesCover photo, contact person’s photo, the first five property photos, and the first three floor plans — each as the image’s URL

WordPress determines which blocks and attributes support Block Bindings:

BlockAttributes
Paragraph, Heading, List itemContent
ImageURL, Alt text, Title, Caption
ButtonURL, Text, Link target, Rel
Navigation linkURL

All WP-ImmoMakler fields provide text, so they are available for every one of these attributes. An image field provides the URL of the image at its original size — use it for an image block’s URL attribute.

  1. Add a Button block and label it, for example “View floor plan”.
  2. Open Attributes and select URL.
  3. Choose the WP-ImmoMakler: Links group, then First PDF attachment with “floor plan” in the title or file name.

If a property has several PDFs attached — for example an exposé and an energy certificate — this field specifically targets the floor plan. It searches the title and file name of the PDF attachments for “floor plan”; case does not matter, and variants such as “floor plans” or “Grundriss_EG.pdf” are also recognized.

If a property has no matching PDF, the value stays empty.