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