@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | |
15 | 15 | <header class="page-header"> |
16 | 16 | |
17 | - <h1 class="page-title"><?php single_term_title( 'All episodes: ' ); ?></h1> |
|
17 | + <h1 class="page-title"><?php single_term_title('All episodes: '); ?></h1> |
|
18 | 18 | |
19 | 19 | <?php |
20 | 20 | // Show an optional term description. |
21 | 21 | $term_description = term_description(); |
22 | - if ( ! empty( $term_description ) ) : |
|
23 | - printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK. |
|
22 | + if ( ! empty($term_description)) : |
|
23 | + printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK. |
|
24 | 24 | endif; |
25 | 25 | ?> |
26 | 26 | |
@@ -36,30 +36,30 @@ discard block |
||
36 | 36 | 'order' => 'ASC', // It is either ASC or DESC, standing for ascendant or descendant order. |
37 | 37 | ); |
38 | 38 | |
39 | - $loop = new WP_Query( $args ); |
|
39 | + $loop = new WP_Query($args); |
|
40 | 40 | // Start the loop. |
41 | - if ( $loop->have_posts() ) : |
|
41 | + if ($loop->have_posts()) : |
|
42 | 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/ |
|
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 | 44 | |
45 | - get_template_part( 'content-series' ); ?> |
|
45 | + get_template_part('content-series'); ?> |
|
46 | 46 | |
47 | 47 | <?php $i++; |
48 | 48 | endwhile; |
49 | 49 | wp_reset_postdata(); ?> |
50 | 50 | |
51 | 51 | <div class="wrap"> |
52 | - <?php the_posts_pagination( array( |
|
53 | - 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>', |
|
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. |
|
52 | + <?php the_posts_pagination(array( |
|
53 | + 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>', |
|
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 | 56 | 'type' => 'title', // How you want the return value to be formatted. |
57 | 57 | 'add_fragment' => '#result', // Your anchor. |
58 | - ) ); ?> |
|
58 | + )); ?> |
|
59 | 59 | </div> |
60 | 60 | |
61 | 61 | <?php else : |
62 | - get_template_part( 'no-results', 'archive-comic' ); |
|
62 | + get_template_part('no-results', 'archive-comic'); |
|
63 | 63 | endif; ?> |
64 | 64 | |
65 | 65 | </main><!-- #content --> |