Passed
Push — development ( 246de1...b28684 )
by Eric
01:00 queued 11s
created

archive.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * The template for displaying archive pages.
4
 *
5
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
6
 *
7
 * @package spurs
8
 */
9
10
// Exit if accessed directly.
11
defined( 'ABSPATH' ) || exit;
12
if ( have_posts() ) : ?>
13
14
    <header class="page-header">
15
		<?php
16
		the_archive_title( '<h1 class="page-title">', '</h1>' );
17
		the_archive_description( '<div class="taxonomy-description">', '</div>' );
18
		?>
19
    </header><!-- .page-header -->
20
21
	<?php /* Start the Loop */
22
	while ( have_posts() ) : the_post();
0 ignored issues
show
Please always use braces to surround the code block of WHILE statements.
Loading history...
23
24
		/*
25
		 * Include the Post-Format-specific template for the content.
26
		 * If you want to override this in a child theme, then include a file
27
		 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
28
		 */
29
		get_template_part( 'templates/loop/content', get_post_format() );
30
	endwhile;
31
32
else :
33
	get_template_part( 'templates/loop/content', 'none' );
34
endif;
35