godaddy-wordpress/go

View on GitHub
search.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * The template for displaying search results pages.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package Go
 */

get_header();

if ( have_posts() ) {

    Go\page_title();

    // Start the Loop.
    while ( have_posts() ) :
        the_post();
        get_template_part( 'partials/content', 'excerpt' );
    endwhile;

    // Previous/next page navigation.
    get_template_part( 'partials/pagination' );

} else {

    // If no content, include the "No posts found" template.
    get_template_part( 'partials/content', 'none' );
}

get_footer();