FIX Small behaviours
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-30 17:05:46 +02:00
parent 6010de5476
commit 0e66a5c52d
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,7 @@
.post-grid {
&__toolbar {
@apply flex flex-col md:grid md:grid-cols-2 gap-4 md:items-center justify-between pb-12;
h2.post-count {
.post-count {
@apply flex items-end gap-2;
&__count {

View File

@ -1,7 +1,8 @@
<?php
$articles = new WP_Query(array(
'post_type' => 'articles',
'posts_per_page' => -1
'posts_per_page' => -1,
'post_status' => 'publish',
));
$post_count = $articles->post_count;
$authors = get_posts(array(
@ -24,7 +25,7 @@ $thematiques = get_terms(array(
<?php echo $post_count; ?>
</span>
<span class="post-count__text">
<?php _e('Articles', 'dynamiques'); ?>
<?php _e('articles', 'dynamiques'); ?>
</span>
</h2>