FEATURE Ajout de la gestion des membres Carhop pour afficher des informations spécifiques
This commit is contained in:
parent
8a0065e1c6
commit
5d14c64fa8
|
|
@ -8,6 +8,17 @@ $profilePictureUrl = $profilePicture['url'] ?? '';
|
||||||
$profilePictureAlt = $profilePicture['alt'] ?? '';
|
$profilePictureAlt = $profilePicture['alt'] ?? '';
|
||||||
$comity = get_field('comity', $author_id);
|
$comity = get_field('comity', $author_id);
|
||||||
$articlesAmount = get_author_articles_amount($author_id);
|
$articlesAmount = get_author_articles_amount($author_id);
|
||||||
|
|
||||||
|
|
||||||
|
$is_carhop_member = get_field('is_carhop_member', $ID);
|
||||||
|
$carhop_member_id = get_field('carhop_member', $ID);
|
||||||
|
|
||||||
|
if ($is_carhop_member && isset($carhop_member_id)) {
|
||||||
|
switch_to_blog(1);
|
||||||
|
$description = get_field('description', $carhop_member_id);
|
||||||
|
$comity = get_field('comity', $carhop_member_id);
|
||||||
|
restore_current_blog();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -98,7 +109,7 @@ $articlesAmount = get_author_articles_amount($author_id);
|
||||||
'ID' => $latestArticle[0]->ID,
|
'ID' => $latestArticle[0]->ID,
|
||||||
'showCover' => true,
|
'showCover' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user