Current File : /home/honehdyv/readbtooom.com/wp-content/themes/toivo-lite/search.php |
<?php
/**
* The template for displaying Search Results pages.
*
* @package Toivo Lite
*/
get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/**
* Run the loop for the search to output the results.
* If you want to overload this in a child theme then include a file
* called content-search.php and that will be used instead.
*/
get_template_part( 'content', 'search' );
?>
<?php endwhile; ?>
<?php
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'toivo-lite' ),
'next_text' => __( 'Next page', 'toivo-lite' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'toivo-lite' ) . ' </span>',
) );
?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php get_footer(); ?>