Проблема заключается в том, что при выводе записей определенной категории на странице новостей не работает разбивка на страницы (page/1/, page/2/…).
Вот часть кода:
<section>
<div class="container content-news">
<div id="news-block" class="col-md-9">
<?php
$wp_query = new WP_Query( 'cat=1');
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<div class="news">
<a href="<?php the_permalink() ?>"><?php echo get_the_post_thumbnail() ?></a>
<h3><?php echo get_the_title( $post ); ?></h3>
<div class="text">
<?php the_content(); ?>
</div>
<p class="date_news"><?php echo get_the_date(); ?> <i class="fa fa-eye"></i> <?php echo getPostViews(get_the_ID()); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="link">Читать далее</a></p>
<hr>
</div>
<?php endwhile;
?>
<div class="forcelink text-right">
<?php the_posts_pagination(); ?>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</section>
Уже обыскал весь интернет, не один из методов не подошел. Помогите пожалуйста, очень нужна помощь!