diff --git a/inc/single-helpers.php b/inc/single-helpers.php index 5273eb4..27a81b5 100644 --- a/inc/single-helpers.php +++ b/inc/single-helpers.php @@ -189,7 +189,6 @@ function thalim_get_single_data($post_id) { $data['images'][] = [ 'url' => $src, 'alt' => get_post_meta($doc_id, '_wp_attachment_image_alt', true) ?: '', - 'caption' => thalim_bilingual(wp_get_attachment_caption($doc_id) ?: '', $lang), 'title' => thalim_bilingual(get_the_title($doc_id) ?: '', $lang), 'portrait' => thalim_image_is_portrait($doc_id, $w, $h), ]; @@ -351,7 +350,6 @@ function thalim_get_single_data($post_id) { $seance_data['images'][] = [ 'url' => $src, 'alt' => get_post_meta($doc_id, '_wp_attachment_image_alt', true) ?: '', - 'caption' => thalim_bilingual(wp_get_attachment_caption($doc_id) ?: '', $lang), 'title' => thalim_bilingual(get_the_title($doc_id) ?: '', $lang), ]; } diff --git a/templates/single.twig b/templates/single.twig index 237d375..37d384e 100644 --- a/templates/single.twig +++ b/templates/single.twig @@ -51,7 +51,7 @@