REFACTOR Refactoring main query loop

This commit is contained in:
Antoine M 2025-06-03 16:41:34 +02:00
parent 2927747d09
commit 51f154d3e0

View File

@ -2,13 +2,13 @@
<div class="container mx-auto my-8">
<?php if ( have_posts() ) : ?>
<?php if (have_posts()) : ?>
<?php
while ( have_posts() ) :
while (have_posts()) :
the_post();
?>
<?php get_template_part( 'template-parts/content', get_post_format() ); ?>
<?php get_template_part('template-parts/content', get_post_format()); ?>
<?php endwhile; ?>