FIX fixing multilingual api urls
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-01 16:42:53 +02:00
parent 163eb8bb52
commit e2f328a3ed

View File

@ -11,8 +11,9 @@ $post_thumbnail = get_the_post_thumbnail($postID, 'full', array('class' => 'card
$postDefautlThumbnail = get_stylesheet_directory_uri() . '/resources/img/illustrations/Homegrade_resultats-filtres.svg';
$post_title = $args['post_title'];
// $post_permalink = get_the_permalink($postID);
$lang_extension = $current_lang === 'nl' ? 'nl/' : '';
$artisans_clean_url = get_site_url() . '/' . $lang_extension . 'artisans/' . $post_name;
$artisans_clean_url = get_home_url(null, '/') . 'artisans/' . $post_name;
$company_members = get_field('company_members', $postID);
$currentTaxonomy = $args['current_taxonomy'];