godaddy-wordpress/go

View on GitHub
archive.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * File: archive.php (for archives and blog landing).
 *
 * @package Go
 */

get_header();

Go\page_title();

if ( have_posts() ) {

    // 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();