Compare commits

...

2 Commits

Author SHA1 Message Date
jorge 2e3cf194fe proper loop in archive ajut 2024-04-19 23:22:48 +02:00
jorge 9f44b092bd removed typos, proper loop in archive convo 2024-04-19 23:14:35 +02:00
3 changed files with 43 additions and 6 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(); ?>

View File

@ -21,7 +21,6 @@ get_header();
<header class="page-header">
<h1><?php //single_term_title( ' ' ); ?></h1>
this is achive-xarxaprod-convo.php
</header>
<aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos">
@ -32,6 +31,26 @@ this is achive-xarxaprod-convo.php
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo);
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
// 1. today's events 'compare' => '='
@ -67,7 +86,7 @@ this is achive-xarxaprod-convo.php
<?php if ( $the_query_convo->have_posts() ) : ?>
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
<?php //get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
<?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?>
@ -98,7 +117,7 @@ this is achive-xarxaprod-convo.php
<?php if ( $the_query_convo->have_posts() ) : ?>
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?>
<?php get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
<?php //get_template_part( 'template-parts/section', 'eachconvo' , $the_query_convo); ?>
<?php endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?>

View File

@ -19,7 +19,6 @@ get_header();
<?php if ( have_posts() ) : ?>
<header class="page-header">
this is convo-search.php
</header><!-- .page-header -->
<?php
while ( have_posts() ) :