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( -
+