From 99d17aca851e8b5488ab3ec43efc47d86621ff4e Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 20 Nov 2025 11:38:57 +0100 Subject: [PATCH] FEATURE Handling synchronisation with carhop member --- .../acf-blocks/team-authors/team-authors.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/dynamiques-blocks/acf-blocks/team-authors/team-authors.php b/plugins/dynamiques-blocks/acf-blocks/team-authors/team-authors.php index 855478b..d8484b5 100644 --- a/plugins/dynamiques-blocks/acf-blocks/team-authors/team-authors.php +++ b/plugins/dynamiques-blocks/acf-blocks/team-authors/team-authors.php @@ -53,6 +53,17 @@ $authors = get_posts(array( $author_description = get_field('description', $author->ID); $author_email = get_field('email', $author->ID); + $is_carhop_member = get_field('is_carhop_member', $author->ID); + $carhop_member_id = get_field('carhop_member', $author->ID); + + if ($is_carhop_member && isset($carhop_member_id)) { + switch_to_blog(1); + $author_description = get_field('description', $carhop_member_id); + $author_email = get_field('email', $carhop_member_id); + $comity = get_field('comity', $carhop_member_id); + restore_current_blog(); + } + $is_director = $author->ID === 476 ? true : false; ?> @@ -64,7 +75,7 @@ $authors = get_posts(array( -
+