FIX conditionnal display if coordination authors has value
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
53e280383e
commit
0c8334e4c1
|
|
@ -39,16 +39,18 @@ $coordinations_authors = get_field('coordinations_authors', $revueID);
|
|||
<h3 class="content-tab__title">Coordination du Numéro</h3>
|
||||
|
||||
<div class="coordination-numero__content">
|
||||
<?php foreach ($coordinations_authors as $author) : ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/authors/card-author',
|
||||
null,
|
||||
array(
|
||||
'ID' => $author->ID,
|
||||
)
|
||||
); ?>
|
||||
<?php if ($coordinations_authors) : ?>
|
||||
<?php foreach ($coordinations_authors as $author) : ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/authors/card-author',
|
||||
null,
|
||||
array(
|
||||
'ID' => $author->ID,
|
||||
)
|
||||
); ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user