| 开发者 |
meerimmo
immowp |
|---|---|
| 更新时间 | 2026年9月5日 19:22 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[immowp_dpe_ges]
Direct values:
[immowp_dpe_ges dpe="250" ges="35"]
With estimated costs and dates:
[immowp_dpe_ges dpe="180" ges="28" montant_min="1200" montant_max="1800" date_dpe="2024-01-15" date_reference="01/01/2024"]
Custom meta keys:
[immowp_dpe_ges dpe_key="my_dpe_field" ges_key="my_ges_field"]
Labels only (feeds that do not provide the numeric consumption):
[immowp_dpe_ges dpe_lettre="D" ges_lettre="B"]
Property not subject to DPE:
[immowp_dpe_ges soumis_dpe="false"]
Full example:
[immowp_dpe_ges dpe="230" ges="40" montant_min="1100" montant_max="1600" date_dpe="2024-03-10" date_reference="01/01/2024" surface="85" altitude="150" zone_climatique="H1"]
Available attributes
dpe / dpe_key — DPE value in kWh/m².yearges / ges_key — GES value in kgCO₂/m².yeardpe_lettre / dpe_lettre_key — DPE label (A to G). It takes precedence over the recalculation: provide it so that the display stays faithful to the official diagnosticges_lettre / ges_lettre_key — GES label (A to G). It also takes precedence over the recalculationmontant_min / montant_min_key — Minimum yearly energy costmontant_max / montant_max_key — Maximum yearly energy costdate_dpe / date_dpe_key — Date of the diagnosticdate_reference / date_reference_key — Reference date of energy pricessurface / surface_key — Reference surface in m². Provide it: below 40 m², it triggers the "small dwellings" thresholds of the decree of 25 March 2024altitude / altitude_key — Altitude in metres. From 800 m, and in climate zones H1b, H1c or H2d only, the thresholds of classes E and F are raised (decree of 25 March 2024)zone_climatique / zone_climatique_key — 3CL-DPE 2021 climate zone (H1a to H3). Required for the altitude adjustment: the decree restricts it to zones H1b, H1c and H2d, so it is not applied until the zone is known. The formats "H1b", "H1-b" and "Zone climatique H1b" are acceptedsoumis_dpe / soumis_dpe_key — Subject to DPE (false/0/non for not subject)dpe="250") or give the name of a WordPress custom field (e.g. dpe_key="my_field"). The default meta keys are configured under Settings > ImmoWP DPE GES.
Official label and recalculation
When the label of the diagnostic is known (dpe_lettre / ges_lettre, or the matching meta keys), it is the one displayed: the plugin only recalculates the class from the numeric values when no label is available. The recalculation starts from rounded values and may differ from the assessor's document, which is based on exact values.
To go back to systematic recalculation, clear the "DPE label" (and/or "GES label") field under Settings > ImmoWP DPE GES, then save.
ImmoWP Gestion Immobilière and the ImmoWP gateway
immowp-diagnostic-dpe-ges folder to /wp-content/plugins/.[immowp_dpe_ges] shortcode in your templates or content.Simply add [immowp_dpe_ges] to the content of your listing. The plugin automatically reads the values from the configured meta fields.
Yes, the plugin works with every WordPress theme. Just configure the names of the meta keys matching your theme or real estate plugin.
From the numeric values, according to the regulatory thresholds: strict upper bounds of the decree of 31 March 2021, and adjusted thresholds of the decree of 25 March 2024 when the reference surface is 40 m² or less. The overall letter displayed on the energy scale is the worse of the two performances (energy and climate). The "small dwellings" table used is the one for dwellings below 800 m of altitude. The specific thresholds of classes E and F above 800 m are applied only when the climate zone (H1b, H1c or H2d) is known.
The plugin switches to a display without chart: the energy and climate classes are rendered as label / badge rows, with the official colours. The regulatory charts cannot be drawn without the numeric consumption. Pass the letter through dpe_lettre / ges_lettre, or through the dpe and ges meta keys (default values, configurable in the settings).
No, the rendering is 100% CSS. No image is loaded, which guarantees optimal performance.
Yes. The French decree of 19 August 2026 lowers the primary energy conversion coefficient of electricity (from 1.9 to 1.7) as of 1 January 2027. This change happens in the assessor's calculation, upstream of the display: the thresholds of classes A to G do not change. Enter the new consumption and the new label of the diagnostic, the plugin renders them as they are. Since version 1.6.0, the official label always takes precedence over the recalculation.
Yes, with no configuration: ImmoWP Gestion Immobilière detects this plugin and delegates the display of the diagnostics on every property page to it. The default meta keys already match its fields. With the ImmoWP gateway, the values are filled in automatically from your real estate software.
Yes. Under Settings > ImmoWP DPE GES, enter the names of the custom fields in which your theme stores the consumption, the emissions and, if available, the label. You can also pass the values directly as shortcode attributes.
languages/immowp-diagnostic-dpe-ges.pot), links to the ImmoWP documentation and to the ImmoWP Gestion Immobilière plugin. The readme is now written in English, with a French translation available on translate.wordpress.org.immowp_dpe_ges_renders_georisques() function lets a theme or a display plugin know whether this plugin renders the Géorisques notice itself. Without it, unchecking "Display the Géorisques notice" in the settings could remove a mandatory notice from the listing (article L. 125-5 of the French environment code): the display plugin, assuming this plugin was in charge, did not take over.dpe_lettre / ges_lettre) is never overwritten by the recalculation any more. It was ignored as soon as a numeric value existed, which made the display diverge from the assessor's document (a displayed consumption of 110 with a real CEP of 109.6 switched from B to C). The mandatory notice of classes F and G is still computed on the worse of the two scales: an energy label inconsistent with the climate class cannot make it disappear.altitude attribute was collected but unused. As the decree restricts this adjustment to these three zones, it is only applied when zone_climatique establishes them: altitude alone is not enough.dpe and ges metas are now read by default, without having to save the settings page again.dpe_lettre and ges_lettre attributes (meta keys dpe_lettre_key / ges_lettre_key, dpe and ges by default) for feeds that only transmit the label of the diagnostic.surface attribute or the matching meta key is filled in.