communiques page fix

This commit is contained in:
ed barz 2023-09-07 12:59:00 +02:00
parent 99c236d46c
commit b390b9039a
1 changed files with 2 additions and 3 deletions

View File

@ -11,12 +11,11 @@ get_header(); ?>
</section>
-->
<?php
// the query
// get all posts in category with slug "communiques"
$wpb_com_query = new WP_Query(array('category_name'=>'communiques', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?>
<?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>
<?php while ( $wpb_com_query->have_posts() ) : $wpb_com_query->the_post(); ?>
<?php