Latest Comics
'comics',
'post_status' => 'publish',
'posts_per_page' => 10,
'paged' => $comics_paged,
'orderby' => 'post_date',
'order' => 'DESC',
);
$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.
*/
get_template_part( 'template-parts/content', 'comiclistitem' );
endwhile;
?>
Latest Posts
$blog_paged,
'posts_per_page' => 5,
);
$blog_query = new WP_Query( $blog_args );
/* Start the Loop */
while ( $blog_query->have_posts() ) : $blog_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.
*/
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
$blog_page_args = array(
'format' => '?blog_paged=%#%#blog-section',
'current' => $blog_paged,
'total' => $blog_query->max_num_pages,
'prev_text' => __( '
' , 'toocheke'),
'next_text' => __( '
' , 'toocheke'),
'add_args' => array( 'comics_paged' => $comics_paged )
);
echo paginate_links( $blog_page_args );
wp_reset_postdata();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>