Move single-post loop to single.php, closes #1582

This commit is contained in:
QWp6t
2015-12-29 18:05:06 -08:00
committed by Ben Word
parent b491f76974
commit 6efa099c79
2 changed files with 16 additions and 16 deletions

View File

@@ -1,15 +1,13 @@
<?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> <?php get_template_part('partials/entry-meta'); ?>
<?php get_template_part('partials/entry-meta'); ?> </header>
</header> <div class="entry-content">
<div class="entry-content"> <?php the_content(); ?>
<?php the_content(); ?> </div>
</div> <footer>
<footer> <?php wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?>
<?php wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?> </footer>
</footer> <?php comments_template('/templates/partials/comments.php'); ?>
<?php comments_template('/templates/partials/comments.php'); ?> </article>
</article>
<?php endwhile; ?>

View File

@@ -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; ?>