FEATURE introducing component
This commit is contained in:
parent
115bc14ff7
commit
d495b9334c
21
template-parts/authors/authors-list.php
Normal file
21
template-parts/authors/authors-list.php
Normal 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>
|
||||
Loading…
Reference in New Issue
Block a user