Issues (311)

single.php (11 issues)

Labels
Severity
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 DesignFly
8
 */
9
10
get_header();
0 ignored issues
show
The function get_header was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

10
/** @scrutinizer ignore-call */ 
11
get_header();
Loading history...
11
?>
12
13
<div id="single-post-wrapper" class="container">
14
		<div class="row">
15
			<div class="col-md-8">
16
				<div id="primary" class="content-area">
17
					<main id="main" class="site-main">
18
19
					<?php
20
					while ( have_posts() ) :
0 ignored issues
show
The function have_posts was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
					while ( /** @scrutinizer ignore-call */ have_posts() ) :
Loading history...
21
						the_post();
0 ignored issues
show
The function the_post was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
						/** @scrutinizer ignore-call */ 
22
      the_post();
Loading history...
22
23
						get_template_part( 'template-parts/content', get_post_type() );
0 ignored issues
show
The function get_post_type was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

23
						get_template_part( 'template-parts/content', /** @scrutinizer ignore-call */ get_post_type() );
Loading history...
The function get_template_part was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

23
						/** @scrutinizer ignore-call */ 
24
      get_template_part( 'template-parts/content', get_post_type() );
Loading history...
24
25
							// the_post_navigation();
26
27
						// If comments are open or we have at least one comment, load up the comment template.
28
						if ( comments_open() || get_comments_number() ) : ?>
0 ignored issues
show
The function comments_open was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
						if ( /** @scrutinizer ignore-call */ comments_open() || get_comments_number() ) : ?>
Loading history...
The function get_comments_number was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
						if ( comments_open() || /** @scrutinizer ignore-call */ get_comments_number() ) : ?>
Loading history...
29
							<div class="comments-wrapper">
30
								<p class="bars"><?php esc_html_e( 'Comments', 'designfly' ); ?></p>
0 ignored issues
show
The function esc_html_e was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

30
								<p class="bars"><?php /** @scrutinizer ignore-call */ esc_html_e( 'Comments', 'designfly' ); ?></p>
Loading history...
31
							<?php comments_template(); ?>
0 ignored issues
show
The function comments_template was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

31
							<?php /** @scrutinizer ignore-call */ comments_template(); ?>
Loading history...
32
							</div>
33
						<?php
34
						endif;
35
36
					endwhile; // End of the loop.
37
					?>
38
39
					</main><!-- #main -->
40
				</div><!-- #primary -->
41
			</div><!-- .col-md -->
42
43
			<div class="col-md-4">
44
				<?php get_sidebar(); ?>
0 ignored issues
show
The function get_sidebar was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

44
				<?php /** @scrutinizer ignore-call */ get_sidebar(); ?>
Loading history...
45
			</div>
46
47
		</div><!-- .row -->
48
</div><!-- #single-post-wrapper -->
49
<?php
50
get_footer();
0 ignored issues
show
The function get_footer was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

50
/** @scrutinizer ignore-call */ 
51
get_footer();
Loading history...
51