FEATURE Showing authors on all articles cards
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
8543e20a46
commit
d94fcf4b90
|
|
@ -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 :
|
||||||
|
|
|
||||||
|
|
@ -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; ?>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user