Issues (631)

taxonomy-story-name.php (9 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template for archiving the example "name" story pages
4
 * Clone this template and replace "name" by your own story name to get going.
5
 *
6
 * @package WordPress
7
 * @subpackage Strip
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
	<section id="primary"
13
		<main id="content" class="wrap" role="main">
14
15
	<header class="page-header">
16
17
	<h1 class="page-title"><?php single_term_title( 'All episodes: ' ); ?></h1>
0 ignored issues
show
The function single_term_title 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

17
	<h1 class="page-title"><?php /** @scrutinizer ignore-call */ single_term_title( 'All episodes: ' ); ?></h1>
Loading history...
18
19
	<?php
20
	// Show an optional term description.
21
	$term_description = term_description();
0 ignored issues
show
The function term_description 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
	$term_description = /** @scrutinizer ignore-call */ term_description();
Loading history...
22
	if ( ! empty( $term_description ) ) :
23
		printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK.
24
endif;
25
?>
26
27
	</header><!-- .page-header -->
28
29
	<?php // Call and run loop in ascending order.
30
	$args = array(
31
32
	'post_type'       => 'comic',
33
	'story'           => 'name', // Change this to your own story name, clone template for multiple stories.
34
	'orderby'         => 'title', // you can order by date if you so prefer.
35
	'paged'           => $paged,
36
	'order'           => 'ASC', // It is either ASC or DESC, standing for ascendant or descendant order.
37
	);
38
39
	$loop = 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
40
	// Start the loop.
41
	if ( $loop->have_posts() ) :
42
		$i = 1;
43
		while ( $loop->have_posts() && $i < 3 ) : $loop->the_post(); // 3 sets the posts per page. @link https://digwp.com/2009/12/limit-posts-without-plugin/
44
45
			get_template_part( 'content-series' ); ?>
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 ignore-call  annotation

45
			/** @scrutinizer ignore-call */ 
46
   get_template_part( 'content-series' ); ?>
Loading history...
46
47
				<?php  $i++;
48
endwhile;
49
		wp_reset_postdata(); ?>
0 ignored issues
show
The function wp_reset_postdata 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

49
		/** @scrutinizer ignore-call */ 
50
  wp_reset_postdata(); ?>
Loading history...
50
51
<div class="wrap">
52
	<?php the_posts_pagination( array(
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

52
	<?php /** @scrutinizer ignore-call */ the_posts_pagination( array(
Loading history...
53
		'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
0 ignored issues
show
The function __ 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

53
		'before_page_number' => '<span class="meta-nav screen-reader-text">' . /** @scrutinizer ignore-call */ __( 'Page', 'strip' ) . ' </span>',
Loading history...
54
		'prev_text' => __( 'Previous', 'strip' ), // In case you want to change the previous link text.
55
		'next_text' => __( 'Next', 'strip' ), // In case you want to change the next link text.
56
		'type' => 'title', // How you want the return value to be formatted.
57
		'add_fragment' => '#result', // Your anchor.
58
	) ); ?>
59
</div>
60
61
<?php else :
62
	get_template_part( 'no-results', 'archive-comic' );
63
endif; ?>
64
65
		</main><!-- #content -->
66
	</section><!-- #primary -->
67
<?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

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