This commit is contained in:
parent
6010de5476
commit
0e66a5c52d
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user