'comic',
'post_status' => 'publish',
'posts_per_page' => 10,
'paged' => $comics_paged,
'orderby' => 'post_date',
'order' => 'DESC',
'tax_query' => array(
array (
'taxonomy' => 'collections',
'field' => 'slug',
'terms' => $collection_terms
)
)
);
$comics_query = new WP_Query($comics_args);
?>
have_posts()):
?>
'collections',
'parent' => $latest_collection_id,
'orderby' => 'meta_value_num',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'collection-order',
'type' => 'NUMERIC',
)),
'show_count' => 0,
'number' => 6,
) );
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', $latest_collection_id );
set_query_var( 'show_comic_number', false );
get_template_part( 'template-parts/content', 'comiclistitem' );
endwhile;
?>
' );
printf( wp_kses_data( '%1$s'), '' );
$term_id = absint($collection->term_id);
$thumb_id = get_term_meta($term_id, 'collection-image-id', true);
if (!empty($thumb_id)) {
$term_img = wp_get_attachment_url($thumb_id);
printf( wp_kses_data( '%1$s'), '
' ); } echo wp_kses_data($collection->name); echo '
';
}
// Reset Post Data
wp_reset_postdata();
?>
' ); } echo wp_kses_data($collection->name); echo '