From c949c7bfbeca1abd30adce65c7b9ef543e584a13 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 24 Mar 2026 17:56:27 +0100 Subject: [PATCH] UPDATE Update post tag links to use the current post type dynamically --- template-parts/components/posts/post-tags.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template-parts/components/posts/post-tags.php b/template-parts/components/posts/post-tags.php index ab5d5da..41fcc24 100644 --- a/template-parts/components/posts/post-tags.php +++ b/template-parts/components/posts/post-tags.php @@ -2,6 +2,8 @@ $postID = get_the_ID(); $etiquettes = get_the_terms($postID, 'etiquettes'); +$current_post_type = get_post_type($postID); + if (empty($etiquettes)) return; ?> @@ -11,7 +13,7 @@ if (empty($etiquettes)) return;