Similar Properties
Below the detail view of a property, WP-ImmoMakler automatically displays a block of similar properties — same property type, same marketing type (buy/rent), a similar price, and proximity in location. If not enough sufficiently similar properties are found, the filtering is progressively relaxed until matching properties are found, or — if your website contains only a single property — the block remains hidden entirely.
How properties are selected
Section titled “How properties are selected”WP-ImmoMakler works through the following stages in order until all slots are filled: if a stage finds fewer properties than are to be shown, the rest come from the following stages. The properties of the earlier stages come first. The radius is widened first, and only then the price band:
- Similar price nearby: Same property type and marketing type, purchase price or base rent at most 20% above or below that of the property, within a radius of 10 km, then 25 km, then 50 km, then anywhere.
- Wider price band: As before, but with a price difference of up to 40%, within a radius of 50 km and then anywhere.
- Without location and price: Same property type and marketing type, regardless of where and at what price.
- Marketing type only: Same marketing type, and finally all properties.
Reference properties and the property itself are never included. Properties with “price on request” only appear from stage 3; if the displayed property itself has no price, the price band is skipped. WP-ImmoMakler measures the radius from the properties’ coordinates in your property management software. If they are missing for the displayed property, its town takes the place of the radius; another property without coordinates appears from the “anywhere” step onwards.
Enabling and Configuring the Feature
Section titled “Enabling and Configuring the Feature”The feature is active by default. You control visibility and count in the WordPress Customizer under WP-ImmoMakler → Property Detail View:
| Setting | Description |
|---|---|
| Show similar properties in the detail view | Turns the block on or off completely. |
| Number of similar properties | How many properties are displayed (1 to 4); also determines the maximum number of columns. On narrower screens, fewer properties are shown side by side, according to the minimum width from the list view settings. |
Full option reference: Customising the detail view.
In page builder templates
Section titled “In page builder templates”PLUS In a template of your page builder, you build the similar properties with the page builder’s own loop: you design the list card like any other property list on your website, and WP-ImmoMakler only determines which properties appear in it. The same rules apply as for the automatic block — same property type, same marketing type, similar price, nearby, with progressive relaxation — and the property currently displayed is never included. You set the number, sorting, and layout in the loop.
In the editor preview, no property has been requested yet; depending on the page builder, the loop shows arbitrary properties there or the ones similar to the preview property. On the detail page, it shows the similar ones.
Elementor Pro
Section titled “Elementor Pro”Insert a Loop Grid and enter the value immomakler_similar_properties under Advanced > Query ID — or choose Query ID: Similar properties via the field’s dynamic tag icon. For the step-by-step guide, see Showing only similar properties.
Divi 5
Section titled “Divi 5”On an element that supports loops (such as a row), enable the loop, choose Properties as the post type, and turn on Only similar properties in the loop settings. Set the number under Posts Per Page. See Divi 5: Create Single Template.
Bricks
Section titled “Bricks”On a container or block, enable the Query Loop and choose the type Similar Properties (WP-ImmoMakler) under Query. The Number of similar properties field appears below it (default: 3). See Bricks: Create Single Template.
WordPress block editor
Section titled “WordPress block editor”In the site editor, insert the Similar properties block into the property detail page template — a variation of the Query Loop block. You design the list card in the contained post template with the usual blocks and the WP-ImmoMakler blocks.
Oxygen 4
Section titled “Oxygen 4”In the Repeater, under Query > Advanced Query, create a Custom Query with the key immomakler_similar_to and the value current, plus post_type with the value immomakler_object.
On a Post Cards element, set Content Source to Related and Taxonomy to WP-ImmoMakler: Similar Properties. See Avada, section Similar properties.
Enfold
Section titled “Enfold”On a Blog Posts element, in the Content tab under Select Entries, choose WP-ImmoMakler: Similar Properties in the WP-ImmoMakler: Property list group. You set the number in the element as usual. See Enfold.
Impreza
Section titled “Impreza”On a Post List, choose WP-ImmoMakler: Similar Properties under Show. You set the number under Quantity. See Impreza and Salient: Similar properties.
Other page builders
Section titled “Other page builders”With the WordPress query parameter immomakler_similar_to=current, any loop that accepts its own query parameters can be limited to similar properties. Divi 4 and WPBakery without Impreza offer no suitable loop for this; use the automatic block or the shortcode variant there.
All Similar Properties in the Property List
Section titled “All Similar Properties in the Property List”PLUS If you append the parameter similar-to with the object number of a property to the address of your property list, the list shows all properties that match that property:
https://www.your-website.com/properties/?similar-to=W-1024-KThe same stages apply as for the block in the detail view. The list shows all properties of the first stage that has matches, with the sorting, pagination and design of your property list. Unlike the block, the later stages do not fill the list up, as it would otherwise end up showing all properties. The property itself and reference properties are never included.
- Object number: This means the external object number from your CRM software. Upper and lower case do not matter, nor does it matter whether the parts of the number are separated by a hyphen, a space or another special character:
W-1024-Kandw 1024 kfind the same property. Unlike the search by object ID, the number must be complete. - With further filters: Further search parameters in the address narrow the list down additionally, e.g.
?similar-to=W-1024-K&bis-kaufpreis=500000. If you choose property type, marketing type or location yourself, your choice applies instead of the details of the property:?similar-to=W-1024-K&vermarktungsart=kaufshows the matching apartments for sale for a rental apartment. - Unknown object number: If there is no property with this number, the list stays empty.
- In the shortcode: The parameter also works as an attribute of the shortcode
[immomakler-archive similar-to="W-1024-K"].
Link to the List in Page Builders
Section titled “Link to the List in Page Builders”Under “Similar Properties” on the detail page, you can point to this list with a button or link. To do so, choose the dynamic link List of all similar properties PLUS as the button’s link. It leads to the list of properties that match the property of the page:
| Page Builder | Where to find the link |
|---|---|
| Site editor (Gutenberg) | Button block → Attributes → Link → WP-ImmoMakler: Links → “List of all similar properties” |
| Elementor Pro | Button link → dynamic tag “Link of the property or list” → field “List of all similar properties” |
| Avada, Enfold, Impreza | Dynamic data of the link → group WP-ImmoMakler: Links → “List of all similar properties” |
| Bricks | Button link → dynamic tag Property: Link to the list of all similar properties |
| Divi 4 and Divi 5 | Button link → dynamic content Link to the list of all similar properties |
If the property has no object number, the link stays empty.
In the WP-ImmoMakler skin without a page builder, you can build the link into your child skin plugin, for example like this:
$url = add_query_arg( 'similar-to', rawurlencode( (string) get_post_meta( get_the_ID(), 'objektnr_extern', true ) ), get_post_type_archive_link( 'immomakler_object' ));echo '<a href="' . esc_url( $url ) . '">Show all similar properties</a>';Custom Display via Shortcode
Section titled “Custom Display via Shortcode”If you need different selection logic than the built-in one (e.g., by features instead of by property type), you can disable the built-in option and instead embed the [immomakler-archive] shortcode PLUS yourself via the immomakler_after_single hook. The shortcode accepts all WP_Query parameters as attributes.
add_action( 'immomakler_after_single', function() { echo '<h2>Ähnliche Objekte</h2>'; echo do_shortcode( '[immomakler-archive vermarktungsart=kauf posts_per_page=3]' );} );Place this code in the functions.php of your WP-ImmoMakler Child-Skin-Plugin.
Available Shortcode Attributes
Section titled “Available Shortcode Attributes”The most important filter attributes for [immomakler-archive]:
| Attribute | Example Value | Description |
|---|---|---|
vermarktungsart |
kauf, miete |
Marketing type |
typ |
haus, wohnung |
Property type |
nutzungsart |
wohnen, gewerbe |
Usage type |
status |
referenz |
Property status |
posts_per_page |
3 |
Number of properties |
columns |
3 |
Maximum number of columns; fewer on narrower screens |
Displaying Properties of the Same Type
Section titled “Displaying Properties of the Same Type”To automatically show properties of the same type in the detail view, you can read the property type of the current entry and pass it as a filter. Please add the following action to your WP-ImmoMakler Child-Skin-Plugin:
add_action( 'immomakler_after_single', function() { global $post; $objektart = get_post_meta( $post->ID, 'objektart', true ); if ( $objektart ) { echo '<h2>Weitere ' . esc_html( $objektart ) . 'en</h2>'; echo do_shortcode( '[immomakler-archive tax_query_objektart="' . esc_attr( $objektart ) . '" posts_per_page=3]' ); }} );Additional Hooks for the Detail View
Section titled “Additional Hooks for the Detail View”In addition to immomakler_after_single, the following action hooks are available:
immomakler_before_single— Before the entire detail viewimmomakler_after_single_details— After the property detail fields, but still within the content areaimmomakler_single_property_actions— In the action buttons area (e.g., next to the details button)