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