Tan-007 /
DesignFly
| 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
Bug
introduced
by
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
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
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
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
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
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
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
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
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
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
Loading history...
|
|||||||||
| 51 |