summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/twentysixteen/search.php')
-rw-r--r--themes/twentysixteen/search.php21
1 files changed, 9 insertions, 12 deletions
diff --git a/themes/twentysixteen/search.php b/themes/twentysixteen/search.php
index 0f893636..4180b5f9 100644
--- a/themes/twentysixteen/search.php
+++ b/themes/twentysixteen/search.php
@@ -20,8 +20,7 @@ get_header(); ?>
<?php
// Start the loop.
- while ( have_posts() ) :
- the_post();
+ while ( have_posts() ) : the_post();
/**
* Run the loop for the search to output the results.
@@ -30,19 +29,17 @@ get_header(); ?>
*/
get_template_part( 'template-parts/content', 'search' );
- // End the loop.
+ // End the loop.
endwhile;
// Previous/next page navigation.
- the_posts_pagination(
- array(
- 'prev_text' => __( 'Previous page', 'twentysixteen' ),
- 'next_text' => __( 'Next page', 'twentysixteen' ),
- 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
- )
- );
-
- // If no content, include the "No posts found" template.
+ the_posts_pagination( array(
+ 'prev_text' => __( 'Previous page', 'twentysixteen' ),
+ 'next_text' => __( 'Next page', 'twentysixteen' ),
+ 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
+ ) );
+
+ // If no content, include the "No posts found" template.
else :
get_template_part( 'template-parts/content', 'none' );