From 07ce23752ac7b50d63d71240453a93398029dbe2 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 17 Feb 2026 14:53:48 +0100 Subject: [PATCH] FEATURE Handling numerotation --- template-parts/components/content-meta.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/template-parts/components/content-meta.php b/template-parts/components/content-meta.php index 54cf2c9..c04754f 100644 --- a/template-parts/components/content-meta.php +++ b/template-parts/components/content-meta.php @@ -3,9 +3,10 @@ $current_post_id = $args['current_post_id'] ?? get_the_ID(); $current_post_type = $args['current_post_type'] ?? null; $type = null; $current_post_type_supports_type = is_object_in_taxonomy($current_post_type, 'type'); +$hasNumerotation = hasPostTypeNumerotation($current_post_type); if ($current_post_type_supports_type) { - $type = get_the_terms($current_post_id, taxonomy: 'type') ?? null; + $type = get_the_terms($current_post_id, 'type') ?? null; // $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); @@ -17,12 +18,13 @@ if ($current_post_type_supports_type) {
- + - - + + +
\ No newline at end of file