REFACTOR Refactoring main query loop
This commit is contained in:
parent
2927747d09
commit
51f154d3e0
|
|
@ -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; ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user