Original Url: https://www.something.com/category/ftm-atf/
When I add pagination in, the following url is generated which results in a 404:
Paginated Url: https://www.something.com/category/ftm-atf/page/2/
The code is located in category.php and looks like the following:
<?php $category = get_category( get_query_var( 'cat' ) ); query_posts(array( 'post_type' => 'video', 'showposts' => 6, 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => array($category->term_id) ) ) )); ?> <?php while (have_posts()) : the_post(); ?> ... <?php endwhile;?> paginate_links(array('total'=> $wp_query->max_num_pages));
I've tried various solutions to no avail, so I feel like something basic is being missed. Essentially, all I need to have happen is to restrict to 6 posts per page, and allow simple pagination.
Thank you so much!