FEATURE introducing component

This commit is contained in:
Antoine M 2026-02-24 17:28:07 +01:00
parent 115bc14ff7
commit d495b9334c

View File

@ -0,0 +1,21 @@
<?php
$postId = $args['postId'];
$componentTitle = 'Auteur·e·s de l\'article';
$authors = get_field('authors', $postId);
?>
<section class="authors-list">
<h3 class="authors-list__title"><?php echo $componentTitle; ?></h3>
<?php foreach ($authors as $author) : ?>
<?php get_template_part(
'template-parts/components/cards/author-card',
null,
array(
'ID' => $author->ID,
)
); ?>
<?php endforeach; ?>
</section>