'series',
'nopaging' => true,
'orderby' => 'post_date',
'order' => 'ASC',
'post_status' => 'publish',
);
$series_query = new WP_Query($series_args);
if ($series_query->have_posts()):
while ($series_query->have_posts()): $series_query->the_post();
$series_id = get_the_ID();
$series_name = get_the_title();
$args = array(
'post_type' => 'comic',
'nopaging' => true,
'post_parent' => $series_id,
'no_found_rows' => true,
'update_post_meta_cache' => false,
'update_post_term_cache' => false,
);
$series_comics = get_posts($args);
if ($series_comics) {
echo '' . wp_kses_data($series_name) . '
';
foreach ($series_comics as $comic) {
setup_postdata($comic);?>