simplification on single
This commit is contained in:
parent
9095d26538
commit
a8326107a1
17
single.php
17
single.php
|
|
@ -1,28 +1,21 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<div class="container my-8 mx-auto">
|
||||
<div class="container my-8 mx-auto">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
while (have_posts()) :
|
||||
the_post();
|
||||
?>
|
||||
|
||||
<?php get_template_part( 'template-parts/content', 'single' ); ?>
|
||||
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
comments_template();
|
||||
endif;
|
||||
?>
|
||||
<?php get_template_part('template-parts/content', 'single'); ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user