@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | <div class="wrap"> |
18 | 18 | <header class="entry-header"> |
19 | 19 | <h3 class="taxonomy-description"> |
20 | - <?php printf( '<a href="%s" class="post-parent-title">%s</a>', |
|
21 | - esc_url( get_post_type_archive_link( 'comic' ) ), |
|
22 | - esc_html( get_the_title() ) |
|
20 | + <?php printf('<a href="%s" class="post-parent-title">%s</a>', |
|
21 | + esc_url(get_post_type_archive_link('comic')), |
|
22 | + esc_html(get_the_title()) |
|
23 | 23 | ); ?> |
24 | 24 | </a></h3> |
25 | 25 | <h1 class="page-title"><?php the_title(); ?></h1> |
@@ -28,28 +28,28 @@ discard block |
||
28 | 28 | <div class="columns"> |
29 | 29 | |
30 | 30 | <?php |
31 | - if ( get_query_var( 'paged' ) ) { |
|
31 | + if (get_query_var('paged')) { |
|
32 | 32 | $paged = 1; |
33 | 33 | } |
34 | 34 | |
35 | 35 | // Call and run loop in descending order. |
36 | - $loop = new WP_Query( array( |
|
36 | + $loop = new WP_Query(array( |
|
37 | 37 | 'post_type' => 'comic', |
38 | 38 | 'story' => '', // add story term here if you want this template to only archive a specific story. |
39 | 39 | 'posts_per_page' => 12, // changes default Blog pages number "reading settings" set in dashboard. |
40 | 40 | 'paged' => $paged, // you absolutely need this. |
41 | 41 | 'orderby' => 'title', // order by title or date. |
42 | 42 | 'order' => 'DESC', |
43 | - ) ); |
|
43 | + )); |
|
44 | 44 | |
45 | 45 | // Start the loop. |
46 | - if ( $loop->have_posts() ) : |
|
47 | - while ( $loop->have_posts() ) : |
|
46 | + if ($loop->have_posts()) : |
|
47 | + while ($loop->have_posts()) : |
|
48 | 48 | $loop->the_post(); |
49 | 49 | ?> |
50 | 50 | <div class="column"> |
51 | - <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ),the_title_attribute( 'echo=0' ) ); ?>"></a> |
|
52 | - <?php if ( get_the_post_thumbnail() !== '' ) { |
|
51 | + <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"></a> |
|
52 | + <?php if (get_the_post_thumbnail() !== '') { |
|
53 | 53 | |
54 | 54 | echo '<a href="'; |
55 | 55 | the_permalink(); |
@@ -64,12 +64,12 @@ discard block |
||
64 | 64 | the_permalink(); |
65 | 65 | echo '" class="thumbnail-wrapper">'; |
66 | 66 | echo '<img src="'; |
67 | - echo esc_html( get_first_image() ); |
|
67 | + echo esc_html(get_first_image()); |
|
68 | 68 | echo '" alt="" />'; |
69 | 69 | echo '</a>'; |
70 | 70 | } ?> |
71 | 71 | |
72 | -<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2> |
|
72 | +<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> |
|
73 | 73 | |
74 | 74 | </div><!-- .column --> |
75 | 75 | <?php endwhile; ?> |
@@ -82,10 +82,10 @@ discard block |
||
82 | 82 | // get_next_posts_link() usage with max_num_pages. ?> |
83 | 83 | <nav class="paging-navigation"> |
84 | 84 | <div class="nav-previous-page"> |
85 | -<?php next_posts_link( esc_html_x( 'Previous episodes', 'Next posts link', 'strip' ), $loop->max_num_pages ); ?> |
|
85 | +<?php next_posts_link(esc_html_x('Previous episodes', 'Next posts link', 'strip'), $loop->max_num_pages); ?> |
|
86 | 86 | </div> |
87 | 87 | <div class="nav-next-page"> |
88 | - <?php previous_posts_link( esc_html_x( 'Recent episodes' , 'Previous post link', 'strip' ) ); ?> |
|
88 | + <?php previous_posts_link(esc_html_x('Recent episodes', 'Previous post link', 'strip')); ?> |
|
89 | 89 | </div> |
90 | 90 | </nav> |
91 | 91 | <?php // clean up after the query and pagination. |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ?> |
94 | 94 | <?php |
95 | 95 | else : |
96 | - get_template_part( 'no-results', 'archive-comic' ); |
|
96 | + get_template_part('no-results', 'archive-comic'); |
|
97 | 97 | endif; ?> |
98 | 98 | |
99 | 99 | </div><!-- .wrap --> |