Issues (631)

index.php (7 issues)

Labels
Severity
1
<?php
2
/**
3
 * The main template file
4
 *
5
 * This is the most generic template file in a WordPress theme
6
 * and one of the two required files for a theme (the other being style.css).
7
 * It is used to display a page when nothing more specific matches a query.
8
 * E.g., it puts together the home page when no home.php file exists.
9
 *
10
 * @link https://codex.wordpress.org/Template_Hierarchy
11
 *
12
 * @package Strip
13
 */
14
15
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

15
/** @scrutinizer ignore-call */ 
16
get_header(); ?>
Loading history...
16
17
	<div id="primary" class="content-area">
18
		<div id="content" class="site-content" role="main">
19
20
		<?php if ( 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
		<?php if ( /** @scrutinizer ignore-call */ have_posts() ) : ?>
Loading history...
21
22
	<?php /* Start the Loop */ ?>
23
			<?php while ( have_posts() ) :
24
				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

24
				/** @scrutinizer ignore-call */ 
25
    the_post(); ?>
Loading history...
25
26
				<?php
27
28
				/*
29
				*
30
				* Include the Post-Format-specific template for the content.
31
				* If you want to override this in a child theme, then include a file
32
				* called content-___.php (where ___ is the Post Format name) and that will be used instead.
33
				*/
34
					get_template_part( 'content', get_post_format() );
0 ignored issues
show
The function get_post_format 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

34
					get_template_part( 'content', /** @scrutinizer ignore-call */ get_post_format() );
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

34
					/** @scrutinizer ignore-call */ 
35
     get_template_part( 'content', get_post_format() );
Loading history...
35
				?>
36
37
			<?php endwhile; ?>
38
39
			<div class="wrap">
40
					<?php the_posts_pagination(); ?>
0 ignored issues
show
The function the_posts_pagination 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

40
					<?php /** @scrutinizer ignore-call */ the_posts_pagination(); ?>
Loading history...
41
	</div>
42
43
		<?php else : ?>
44
45
			<?php get_template_part( 'no-results', 'index' ); ?>
46
47
		<?php endif; ?>
48
49
		</div><!-- #content -->
50
	</div><!-- #primary -->
51
52
<?php 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

52
<?php /** @scrutinizer ignore-call */ get_footer(); ?>
Loading history...
53