FIX Force wame pictures between NL and FR Query
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
44ed1be6d3
commit
f4289faa13
|
|
@ -155,7 +155,13 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
$localisation = get_field('localisation', $chantier->ID) ?? null;
|
$localisation = get_field('localisation', $chantier->ID) ?? null;
|
||||||
$city = $localisation['city'] ?? null;
|
$city = $localisation['city'] ?? null;
|
||||||
|
|
||||||
$pictures = get_field('pictures', $chantier->ID);
|
//########## FORCE GET_FIELD IN FR TO BE SURE WE HAVE SAME PICTURES BETWEEN FR AND NL ##########
|
||||||
|
$chantier_fr_id = apply_filters('wpml_object_id', $chantier->ID, 'chantiers', TRUE, 'fr');
|
||||||
|
$current_lang = apply_filters('wpml_current_language', NULL);
|
||||||
|
do_action('wpml_switch_language', 'fr');
|
||||||
|
$pictures = get_field('pictures', $chantier_fr_id);
|
||||||
|
do_action('wpml_switch_language', $current_lang);
|
||||||
|
|
||||||
$chantier_name = get_field('chantier_name', $chantier->ID);
|
$chantier_name = get_field('chantier_name', $chantier->ID);
|
||||||
?>
|
?>
|
||||||
<div class="chantier">
|
<div class="chantier">
|
||||||
|
|
@ -182,7 +188,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user