I have content-extensions.php in a child theme and have modified ultimate_theloop_for_template_blog_image_large
if( is_page('86') ){
$blog_query = new WP_Query( array('cat' => '6', 'post_type' => 'post', 'paged' => $paged ) );
}else{
$blog_query = new WP_Query( array('post_type' => 'post', 'paged' => $paged ) );
}
This works correctly and only returns category 6 posts as expected. The problem is with the:
ultimate<?php next_posts_link( __( '« Previous', 'ultimate' ), $wp_query->max_num_pages ); ?>
and the:
ultimate<?php previous_post_link( __( 'Next »', 'ultimate' ), $wp_query->max_num_pages ); ?>
The previous and next show all posts not just the categorized. What am I missing here? I thought that the max_num_pages returned only from the current query but it seems to be returning all posts not just the category num of posts. What should I do to be able to only show previous and next from the category 6?