This commit is contained in:
parent
6010de5476
commit
0e66a5c52d
|
|
@ -1,8 +1,7 @@
|
||||||
.post-grid {
|
.post-grid {
|
||||||
&__toolbar {
|
&__toolbar {
|
||||||
@apply flex flex-col md:grid md:grid-cols-2 gap-4 md:items-center justify-between pb-12;
|
@apply flex flex-col md:grid md:grid-cols-2 gap-4 md:items-center justify-between pb-12;
|
||||||
|
.post-count {
|
||||||
h2.post-count {
|
|
||||||
@apply flex items-end gap-2;
|
@apply flex items-end gap-2;
|
||||||
|
|
||||||
&__count {
|
&__count {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
$articles = new WP_Query(array(
|
$articles = new WP_Query(array(
|
||||||
'post_type' => 'articles',
|
'post_type' => 'articles',
|
||||||
'posts_per_page' => -1
|
'posts_per_page' => -1,
|
||||||
|
'post_status' => 'publish',
|
||||||
));
|
));
|
||||||
$post_count = $articles->post_count;
|
$post_count = $articles->post_count;
|
||||||
$authors = get_posts(array(
|
$authors = get_posts(array(
|
||||||
|
|
@ -24,7 +25,7 @@ $thematiques = get_terms(array(
|
||||||
<?php echo $post_count; ?>
|
<?php echo $post_count; ?>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-count__text">
|
<span class="post-count__text">
|
||||||
<?php _e('Articles', 'dynamiques'); ?>
|
<?php _e('articles', 'dynamiques'); ?>
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user