proper loop in archive ajut

This commit is contained in:
jorge 2024-04-19 23:22:48 +02:00
parent 9f44b092bd
commit 2e3cf194fe
1 changed files with 21 additions and 2 deletions

View File

@ -30,6 +30,25 @@ get_header();
<?php } //end if is_plugin_active ?>
</aside>
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/section', 'eachfund' );
endwhile;
the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</content>
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php
// very wired, need to output
@ -68,7 +87,7 @@ get_header();
<?php if ( $the_query_ajut->have_posts() ) : ?>
<?php while ( $the_query_ajut->have_posts() ) : $the_query_ajut->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
<?php //get_template_part( 'template-parts/section', 'eachfund' ); ?>
<?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?>
@ -97,7 +116,7 @@ get_header();
<?php if ( $the_query_ajut->have_posts() ) : ?>
<?php while ( $the_query_ajut->have_posts() ) : $the_query_ajut->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'eachfund' ); ?>
<?php //get_template_part( 'template-parts/section', 'eachfund' ); ?>
<?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?>