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
Bug
introduced
by
![]() |
|||||||||
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
![]() |
|||||||||
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
![]() |
|||||||||
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
![]() 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
![]() |
|||||||||
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
![]() |
|||||||||
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
![]() |
|||||||||
53 |