Compare commits
2 Commits
107673517e
...
d94fcf4b90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d94fcf4b90 | ||
|
|
8543e20a46 |
|
|
@ -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 :
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
the_post();
|
the_post();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
|
||||||
<header class="entry-header mb-4">
|
<header class="entry-header mb-4">
|
||||||
|
|
|
||||||
|
|
@ -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