-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move single-post loop to single.php, closes #1582
- Loading branch information
Showing
2 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<?php while (have_posts()) : the_post(); ?> | ||
<article <?php post_class(); ?>> | ||
<header> | ||
<h1 class="entry-title"><?php the_title(); ?></h1> | ||
<?php get_template_part('partials/entry-meta'); ?> | ||
</header> | ||
<div class="entry-content"> | ||
<?php the_content(); ?> | ||
</div> | ||
<footer> | ||
<?php wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?> | ||
</footer> | ||
<?php comments_template('/templates/partials/comments.php'); ?> | ||
</article> | ||
<?php endwhile; ?> | ||
<article <?php post_class(); ?>> | ||
<header> | ||
<h1 class="entry-title"><?php the_title(); ?></h1> | ||
<?php get_template_part('partials/entry-meta'); ?> | ||
</header> | ||
<div class="entry-content"> | ||
<?php the_content(); ?> | ||
</div> | ||
<footer> | ||
<?php wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?> | ||
</footer> | ||
<?php comments_template('/templates/partials/comments.php'); ?> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; ?> |