<div class="inner-section">
<?php
global $wp_query, $paged;
if( get_query_var('paged') ) {
$paged = get_query_var('paged');
}else if ( get_query_var('page') ) {
$paged = get_query_var('page');
}else{
$paged = 1;
}
$args = array( 'cat' => 5, 'post_type' => 'post', 'posts_per_page' => 6, 'paged' => $paged);
$wp_query = new WP_Query( $args );
while ( $wp_query->have_posts() ) {
$wp_query->the_post();
get_template_part( 'template-parts/content', 'blog' );
}
wp_reset_postdata();
?>
</div>
<div class="inner-section clearfix">
<div class="floatleft linkpage"><?php previous_posts_link('<span class="larr">←</span> <span class="tlarr">Предыдущая страница</span>'); ?></div>
<div class="floatright linkpage"><?php next_posts_link('<span class="tlarr">Следующая страница</span> <span class="larr">→</span>'); ?></div>
</div>