diff --git a/template-parts/components/content-meta.php b/template-parts/components/content-meta.php index c04754f..f18b7a8 100644 --- a/template-parts/components/content-meta.php +++ b/template-parts/components/content-meta.php @@ -6,13 +6,15 @@ $current_post_type_supports_type = is_object_in_taxonomy($current_post_type, 'ty $hasNumerotation = hasPostTypeNumerotation($current_post_type); if ($current_post_type_supports_type) { - $type = get_the_terms($current_post_id, 'type') ?? null; + $type_term = get_the_terms($current_post_id, 'type')[0] ?? null; + if ($type_term) { + $type = $type_term->name; + } // $current_post_type === 'analyses-etudes' && is_array($type) && !empty($type) && isset($type[0]->name } else { $current_post_type_obj = get_post_type_object($current_post_type); $type = $current_post_type_obj->labels->singular_name; } - ?> @@ -22,9 +24,11 @@ if ($current_post_type_supports_type) { +

Numéro - 28 +

\ No newline at end of file