$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'post',
'posts_per_page' => '3',
'paged' => $paged,
)
);
$wp_query = new WP_Query( $args );
while ( $wp_query->have_posts() ) : $wp_query->the_post();
//выводите что нужно
endwhile;
<?php the_categorY(', ', $parents, $post_id ); ?>