Tan-007 /
DesignFly
| 1 | <?php |
||||||
| 2 | /** |
||||||
| 3 | * Template Name: Blog Page |
||||||
| 4 | * |
||||||
| 5 | * The template for displaying portfolio |
||||||
| 6 | * |
||||||
| 7 | * This is the template that displays all portfolio items. |
||||||
| 8 | * |
||||||
| 9 | * @package DesignFly |
||||||
| 10 | * |
||||||
| 11 | * @since 1.0.3 |
||||||
| 12 | * |
||||||
| 13 | */ |
||||||
| 14 | |||||||
| 15 | get_header(); |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 16 | ?> |
||||||
| 17 | |||||||
| 18 | <div id="blog-template" class="container"> |
||||||
| 19 | <div class="row"> |
||||||
| 20 | <div class="col-md-8"> |
||||||
| 21 | <div class="header"> |
||||||
| 22 | <p>Let's Blog</p> |
||||||
| 23 | <hr /> |
||||||
| 24 | </div> |
||||||
| 25 | <div id="primary" class="content-area"> |
||||||
| 26 | <main id="main" class="site-main"> |
||||||
| 27 | |||||||
| 28 | <?php |
||||||
| 29 | $posts_per_page = get_option( 'posts_per_page' ); // from admin panel > settings |
||||||
|
0 ignored issues
–
show
The function
get_option 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...
|
|||||||
| 30 | |||||||
| 31 | $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : '1'; |
||||||
|
0 ignored issues
–
show
The function
get_query_var 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 | $args = array( |
||||||
| 33 | 'post_type' => array( 'post', 'df-portfolio' ), |
||||||
| 34 | 'post_status' => 'publish', |
||||||
| 35 | 'posts_per_page' => $posts_per_page, |
||||||
| 36 | 'paged' => $paged, |
||||||
| 37 | 'nopaging' => false, |
||||||
| 38 | ); |
||||||
| 39 | $query = new WP_Query($args); |
||||||
|
0 ignored issues
–
show
The type
WP_Query was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||||
| 40 | |||||||
| 41 | while ( $query -> have_posts() ) : |
||||||
| 42 | $query -> the_post(); |
||||||
| 43 | |||||||
| 44 | get_template_part( 'template-parts/content', 'blog-template' ); |
||||||
|
0 ignored issues
–
show
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...
|
|||||||
| 45 | |||||||
| 46 | endwhile; // End of the loop. |
||||||
| 47 | ?> |
||||||
| 48 | |||||||
| 49 | <!-- pagination --> |
||||||
| 50 | <?php designfly_pagination_bar( $query ); ?> |
||||||
| 51 | |||||||
| 52 | </main><!-- #main --> |
||||||
| 53 | </div><!-- #primary --> |
||||||
| 54 | </div><!-- .col-md-8 --> |
||||||
| 55 | |||||||
| 56 | <div class="col-md-4"> |
||||||
| 57 | <?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...
|
|||||||
| 58 | </div><!-- .col-md-4 --> |
||||||
| 59 | </div><!-- .row --> |
||||||
| 60 | </div> <!-- #blog-template --> |
||||||
| 61 | |||||||
| 62 | <?php |
||||||
| 63 | 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...
|
|||||||
| 64 | ?> |