FEATURE Showing authors on all articles cards
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-16 15:29:20 +02:00
parent 8543e20a46
commit d94fcf4b90
3 changed files with 6 additions and 4 deletions

View File

@ -117,7 +117,8 @@ function build_articles($request)
'date' => get_the_date(), 'date' => get_the_date(),
'image' => get_the_post_thumbnail_url(), 'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(), 'link' => get_the_permalink(),
'ID' => get_the_ID() 'ID' => get_the_ID(),
'showAuthors' => true,
)); ));
endwhile; endwhile;
else : else :

View File

@ -60,11 +60,11 @@ $thematiques = get_terms(array(
<?php if ($articles->have_posts()) : ?> <?php if ($articles->have_posts()) : ?>
<?php while ($articles->have_posts()) : $articles->the_post(); ?> <?php while ($articles->have_posts()) : $articles->the_post(); ?>
<?php get_template_part('template-parts/articles/card-article', null, array( <?php get_template_part('template-parts/articles/card-article', null, array(
'date' => get_the_date(), 'date' => get_the_date(),
'image' => get_the_post_thumbnail_url(), 'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(), 'link' => get_the_permalink(),
'ID' => get_the_ID() 'ID' => get_the_ID(),
'showAuthors' => true,
)); ?> )); ?>
<?php endwhile; ?> <?php endwhile; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -13,7 +13,8 @@ $issue_related_articles = get_field('articles', $revueID);
'date' => $article->post_date, 'date' => $article->post_date,
'image' => get_the_post_thumbnail_url($article->ID), 'image' => get_the_post_thumbnail_url($article->ID),
'link' => get_the_permalink($article->ID), 'link' => get_the_permalink($article->ID),
'ID' => $article->ID 'ID' => $article->ID,
'showAuthors' => true,
)); ?> )); ?>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>