Completed
Push — master ( 556f73...911fab )
by Md. Mozahidur
02:37
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
 * @link https://codex.wordpress.org/Template_Hierarchy
6
 *
7
 * @package Lighthouse
8
 */
9
10
get_header(); ?>
11
12
	<div id="primary" class="content-area">
13
		<main id="main" class="site-main" role="main">
14
		<?php
15 View Code Duplication
		if ( have_posts() ) : ?>
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
17
			<header class="page-header">
18
				<?php
19
					the_archive_title( '<h1 class="page-title">', '</h1>' );
20
					the_archive_description( '<div class="taxonomy-description">', '</div>' );
21
				?>
22
			</header><!-- .page-header -->
23
24
			<?php
25
			/* Start the Loop */
26
			while ( have_posts() ) : the_post();
27
28
				/*
29
				 * Include the Post-Format-specific template for the content.
30
				 * If you want to override this in a child theme, then include a file
31
				 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
32
				 */
33
				get_template_part( 'template-parts/content', get_post_format() );
34
35
			endwhile;
36
37
			the_posts_navigation();
38
39
		else :
40
41
			get_template_part( 'template-parts/content', 'none' );
42
43
		endif; ?>
44
45
		</main><!-- #main -->
46
	</div><!-- #primary -->
47
48
<?php
49
get_sidebar();
50
get_footer();
51