Completed
Push — master ( 8652fb...5f173e )
by Md. Mozahidur
02:27
created

single.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 all single posts.
4
 *
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
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
15
		<?php
16 View Code Duplication
		while ( have_posts() ) : the_post();
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...
17
18
			get_template_part( 'template-parts/content', get_post_format() );
19
20
			the_post_navigation();
21
22
			// If comments are open or we have at least one comment, load up the comment template.
23
			if ( comments_open() || get_comments_number() ) :
24
				comments_template();
25
			endif;
26
27
		endwhile; // End of the loop.
28
		?>
29
30
		</main><!-- #main -->
31
	</div><!-- #primary -->
32
33
<?php
34
get_sidebar();
35
get_footer();
36