$series_id, 'post_type' => 'comic', 'tax_query' => array( array( 'taxonomy' => 'comic_characters', 'field' => 'slug', 'terms' => $comic_characters, ), ), 'post_status' => 'publish', 'posts_per_page' => 10, 'paged' => $comics_paged, 'orderby' => 'post_date', 'order' => $comic_order, ); $comics_query = new WP_Query($comics_args); /* Start the Loop */ while ($comics_query->have_posts()): $comics_query->the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ set_query_var('latest_collection_id', 0); if (!$series_id) { set_query_var('show_comic_number', true); set_query_var('series_id', null); } else { set_query_var('series_id', $series_id); } get_template_part('template-parts/content', 'comiclistitem'); endwhile; ?>
'?comics_paged=%#%', 'current' => $comics_paged, 'total' => $comics_query->max_num_pages, 'prev_text' => wp_kses(__('', 'toocheke'), array('i' => array('class' => array()))), 'next_text' => wp_kses(__('', 'toocheke'), array('i' => array('class' => array()))), )); if ($links): ?>