removed typos, proper loop in archive convo

This commit is contained in:
jorge 2024-04-19 23:14:35 +02:00
parent 16b6d1a1e0
commit 9f44b092bd
2 changed files with 22 additions and 4 deletions

View File

@ -21,7 +21,6 @@ get_header();
<header class="page-header"> <header class="page-header">
<h1><?php //single_term_title( ' ' ); ?></h1> <h1><?php //single_term_title( ' ' ); ?></h1>
this is achive-xarxaprod-convo.php
</header> </header>
<aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos"> <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(); ?>"> <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 <?php
// very wired, need to output // very wired, need to output
// 1. today's events 'compare' => '=' // 1. today's events 'compare' => '='
@ -67,7 +86,7 @@ this is achive-xarxaprod-convo.php
<?php if ( $the_query_convo->have_posts() ) : ?> <?php if ( $the_query_convo->have_posts() ) : ?>
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?> <?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 endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?> <?php wp_reset_postdata(); ?>
@ -98,7 +117,7 @@ this is achive-xarxaprod-convo.php
<?php if ( $the_query_convo->have_posts() ) : ?> <?php if ( $the_query_convo->have_posts() ) : ?>
<?php while ( $the_query_convo->have_posts() ) : $the_query_convo->the_post(); ?> <?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 endwhile;//end of the loop ?>
<?php wp_reset_postdata(); ?> <?php wp_reset_postdata(); ?>

View File

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