diff --git a/single-artisans.php b/single-artisans.php index 7cbde78..29c3e70 100644 --- a/single-artisans.php +++ b/single-artisans.php @@ -149,7 +149,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null; ) ); $chantiers = new WP_Query($args); - // write_log($chantiers->posts); ?> posts): ?>
@@ -172,48 +171,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null; $pictures = get_field('pictures', $current_chantier_ID); $chantier_name = get_field('chantier_name', $current_chantier_ID); - - if ($current_chantier_ID === 8917 || $current_chantier_ID === 2732) { - // write_log($current_chantier_ID); - // write_log($chantier_name); - // write_log($pictures); - } - - - // Si déjà en français, inutile de switcher - // if ($current_lang !== 'fr') { - // // LANGUAGE IS NL - // $chantier_name = get_field('chantier_name', $chantier_fr_id); - // // $pictures = get_field('pictures', $chantier_fr_id); - // if ($chantier_fr_id == 2732) { - - // write_log($current_lang); - // write_log("on est en NL ON SWITCHE"); - // do_action('wpml_switch_language', 'fr'); - // write_log($chantier_fr_id); - // } - // do_action('wpml_switch_language', $current_lang); // Revenir à la langue d’origine - - // } else { - // // LANGUAGE IS FR - - // $pictures = get_field('pictures', $current_chantier_ID); - // $test = get_field_object('pictures', $chantier_fr_id); - // if ($chantier_fr_id == 2732) { - // write_log($test); - // write_log($chantier_name); - // // write_log($pictures); - // // write_log($pictures); - // write_log($chantier_fr_id); - // write_log(get_the_ID()); - // // write_log($pictures); - // } - - - // // On est déjà en FR, on ne switch pas - // } - - ?>