From def83bb0efe2301926e71924f8784943a64c68db Mon Sep 17 00:00:00 2001 From: Gilles Van Assche Date: Thu, 23 Oct 2025 14:35:04 +0200 Subject: [PATCH] Fix url CTA in erfgoed --- template-components/post-conseils/find-artisan.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/template-components/post-conseils/find-artisan.php b/template-components/post-conseils/find-artisan.php index 4db6066..5dfe739 100644 --- a/template-components/post-conseils/find-artisan.php +++ b/template-components/post-conseils/find-artisan.php @@ -2,6 +2,9 @@ // get network site 2 home url $networkArtisan = get_blog_details(2); $networkArtisanHomeUrl = isset($networkArtisan->home) ? $networkArtisan->home : ''; +$current_lang = apply_filters('wpml_current_language', null); +// print_r($current_lang); +$current_lang === 'nl' ? $networkArtisanHomeUrl .= '/nl/' : ''; ?>