The issue is that before your custom queries load, WordPress runs the main taxonomy query (all results in that tax term, 10 per page). On page 6, the main query is trying to load posts 51-60, and since they don’t exist the page 404’s before you have a chance to load your custom query.
Customize the main query using the pre_get_posts hook so that the second loop you’re doing is the main query. Add this to functions.php: https://gist.github.com/1616098
Then for your second loop, just do:
if( have_posts() ): while( have_posts() ): the_post();
More information: http://www.billerickson.net/customize-the-wordpress-query/
Related Posts:
- posts_per_page & pagination conflict
- Broken pagination
- Broken pagination, need help figuring out why!
- Hide featured post on second page
- Is it possible to have pagination with an offset loop?
- Offset a post in the loop, with using PageNavi Plug-in
- Why do next pages load the same content rather then older articles?
- Add pagination to my custom loop [duplicate]
- Page with Multiple Loops Breaking Pagination
- Pagination Not Working When Modifying Loop Based on Post Category
- Pagination in author, category, archive and tags pages does not work
- Blog pagination WITHOUT using max_num_pages
- Page not found yet the posts are listed?
- split wordpress loop into columns of categories and associated posts
- The pagination doesn’t work
- Why do you need an unlikely integer in paginating?
- How to get the number of Pages in a single Post Pagination?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- How do I prevent one of two multiple loops from repeating on a second page?
- Combining WordPress pagination functions for archives and search results
- Newer/Older posts links display same posts on every page
- Passing custom args in paginate_links
- Paginate a list of users?
- Pagination that includes “view all on one page”
- Custom page-links for paginated posts | wp_link_pages quicktag
- Pagination with get_posts seems to work but links not showing
- How to let crawlers search paginated comments?
- Paging on a future post loop?
- In pagination, change link for page 1 to homepage
- Multiple WP_Query loops with Pagination Not Working
- Enable infinite scroll on single.php [closed]
- How do I insert CSS into a function?
- wp_list_categories pagination
- Insert pagination links – wp_link_pages() – before filters on posts
- Page not found when clicking on pagination tab
- How to display all posts from standard posts to custom post types in a loop with pagination?
- next_post_link for CPT only working for a few posts? weird!
- How to create Alphabetic pagination with range?
- Site pagination issue
- Archive page pagination links redirecting to home page instead of going next page
- Blog page pagination is not working after using the offset argument
- WordPress Gallery shortcode with pagination
- How to paginate with letters instead of numbers?
- Pagination in pages (not posts) with the twentythirteen theme?
- Genesis multiple category custom loop 404s after first page
- Custom loops, sticky posts, and pagination nightmare
- pagination not working for category.php (custom post types in categories)
- How to customize pagination links?
- How to get my loop to paginate?
- Post Pagination Showing Same Posts Every Page at wordpress blog
- Pagination for search results from a custom query
- Check if “Break comments into pages” is selected
- Custom posts not paginating on archive page and returning 404
- Getting blog pagination to work on page set as front page
- Customizing Latest Post Pagination
- Pagination and multiple loops
- Woocommerce products per page dropdown
- WordPress Pagination is not shown
- Show multiple next and previous posts
- How to add pagination to category templates
- Conditional category query breaking?
- Search URL redirect problem
- Why are my paginated result links not working?
- Pagination don’t list all entries on Index.php
- WordPress default gallery pagination when in page (is_page)?
- How do I hide a Gutenberg block when paginating
- Understrap Custom Pagination
- Pass global variable from Page 1 to page 2 (Pagination)
- Pagination contents not changing in Front page WordPress
- How to remove url from omission dots in WordPress pagination?
- Pagination not working on archive.php
- Pagination Not Working When Used With WP_Query() `offset` Property
- Pagination 301 redirecting page 1
- change pagination url
- How to insert content before pagination in loop?
- Creating a Back button on detail post page to go back to blog page with same query strings and page id
- get_posts custom paging
- Can I Paginate Post after every 25 tag?
- page/2 not working in wordpress it showing 404 page erorr
- Extra pagination pages being wrongly generated
- 404 Error on pagination with WP Query
- What is wrong with my code ? pagination does not show up
- Paginating custom posts in categories yields a 404 error
- Pagination not working with custom loop
- Pagination for custom post type not working [duplicate]
- Paged homepage – requirements?
- Multiple loops on index page with sticky post and pagination
- Pagination not displaying correct number of pages
- Pagination in category.php not functioning
- Pagination with wp_pagenavi not working on custom page
- how to apply Pagination on post
- Add Pagination in custom loop
- Custom Post Type Pagination For Genesis Child Theme [closed]
- Modifying previous_posts link to use AJAX
- paginate_links with select option
- Separate page for pagination possible?
- Show number of posts AND number on current page (cannot make it work)
- Why does WordPress keep directing or forcing my pagination?