Go to Settings –> Reading Settings and put 1 in Blog pages show at most. Then add this to child-theme’s functions.php
file (put the code anywhere between opening <?php
and closing ?>
php tags)
function posts_on_category_archive($query){
if ($query->is_category) {
$query->set('posts_per_page', 10);
}
return $query;
}
add_filter('pre_get_posts', 'posts_on_category_archive');
Moved to Support. Please post in the correct section next time.