'comic',
'post_status' => 'publish',
'posts_per_page' => 10,
'paged' => $comics_paged,
'orderby' => 'post_date',
'order' => 'DESC',
);
$comics_query = new WP_Query($comics_args);
?>
have_posts()):
?>
'chapters',
'style' => 'none',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'chapter-order',
'type' => 'NUMERIC',
)),
'show_count' => 0,
'number' => 6,
);
$chapters_list = get_categories($chapter_args);
if ($chapters_list) {
?>
-
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);
set_query_var( 'show_comic_number', true );
get_template_part( 'template-parts/content', 'comiclistitem' );
endwhile;
?>