Move single-post loop to single.php, closes #1582
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
<?php while (have_posts()) : the_post(); ?>
|
|
||||||
<article <?php post_class(); ?>>
|
<article <?php post_class(); ?>>
|
||||||
<header>
|
<header>
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||||
@@ -12,4 +11,3 @@
|
|||||||
</footer>
|
</footer>
|
||||||
<?php comments_template('/templates/partials/comments.php'); ?>
|
<?php comments_template('/templates/partials/comments.php'); ?>
|
||||||
</article>
|
</article>
|
||||||
<?php endwhile; ?>
|
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
<?php get_template_part('partials/content-single-' . get_post_type()); ?>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
|
<?php get_template_part('partials/content-single', get_post_type()); ?>
|
||||||
|
<?php endwhile; ?>
|
||||||
Reference in New Issue
Block a user