changed loop qery name from agenda to activitats

This commit is contained in:
Jorge vitrubio.net 2024-05-24 10:53:09 +02:00
parent 881494e427
commit 8afcb066d5
1 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ get_header();
</aside>
<?php
$the_query_archive_agenda = new WP_Query(
$the_query_archive_activitats = new WP_Query(
array(
'post_type' => 'post',
'posts_per_page' => '-1', //show all => -1
@ -68,9 +68,9 @@ get_header();
)
);
?>
<?php if ( $the_query_archive_agenda->have_posts() ) : ?>
<?php if ( $the_query_archive_activitats->have_posts() ) : ?>
<content class="archive-posts <?php //xarxaprod_class_posttype(); ?>">
<?php while ( $the_query_archive_agenda->have_posts() ) : $the_query_archive_agenda->the_post(); ?>
<?php while ( $the_query_archive_activitats->have_posts() ) : $the_query_archive_activitats->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'each-agenda-entry' ); ?>