A problem with a custom query is that the posts_per_page resets before the page loads. So if you got 10 posts, than you only have one page, because the default posts_per_page is 10. If you have 11 posts than you will see the second page, but not beyond that.
Solution for this is changing your posts_per_page settings in the back-end: Settings > Reading > Blog pages show at most > 3. But this will change all archive page settings. Quick fix for this is adding
<?php global $query_string; query_posts($query_string . '&posts_per_page=10'); ?>
at the top of your archive templates where you want the default posts_per_page.
Related Posts:
- Custom pagination for custom post types (by names)
- next_post_link() not working for single custom post type post
- Pagination with custom post type not working
- Changing the URL Structure of a Paginated Custom Post
- Number of pages – multiple (custom) post types
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- Multiple Paginations on one Page
- Pagination not working with custom category template
- Custom Post Type pagination – normal solutions aren’t helping
- Custom Post Type Rewrite Rule for Author & Paging?
- Newer/Older posts links display same posts on every page
- Custom post type archive with pagination?
- Pagination in plugin with custom post type
- Fix custom query pagination without changing site-wide posts-per-page settings
- Display “Post 2 of 4” on single post page?
- Paginate Custom Post Type Page
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Pagination Issue: Custom Post Type In Index
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom post type archive page pagination
- Custom post type archive not regarding ‘posts_per_page’ => -1
- Archive template for custom post type only lists first 10
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- How can i change the output of posts_nav_link();
- Pagination on a custom post type loop
- How to alter WP-JSON main query or best practise for custom endpoints
- Pagination is not working in custom post type
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Previous/Next Link by Meta Value in CPT
- Custom post type (with parent-child relationship) singular page with pagination
- Custom taxonomy rewrite give pagination 404
- Next and Previous Posts of Same Parent
- Custom template Page 2 not working
- How do you paginate a query grouped by month?
- custom post type pagination error 404
- Next Post links not working in custom post type shortcode
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- pagination not working for category.php (custom post types in categories)
- Cant get paginations on single.php to work with my custom post types
- Custom WP_Query always respond with 200 status even when no entry
- Can’t use pagination with custom taxonomy
- Trouble with pagination
- Pagination 404 on Index with custom query
- previous_post_link in same taxonomy in custom post type
- How to do admin CRUD & Pagination
- Custom ordering of CPT items not matching with the ordering of its pagination
- Break up posts per page in two sections
- How to list custom post types on a custom post type page?
- Custom Post Type Archive Pagination
- Custom post pagination trouble
- Pagination on a page
- Single parent post lists child posts with pagination
- Using custom post type as front home page pagination not working
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Problem with custom loop navigation inside the blog page
- pagination for custom post type archive page
- custom taxonomy pagination 404 error
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- Pagination Not Working When Used With WP_Query() `offset` Property
- Pagination on custom post type without plugin
- pagination problem listing custom post types of taxonomy in wordpress
- Permalink for custom post type pages not working
- How to display custom post type pagination buttons when processing AJAX request
- Make pagination work as a carousel (custom query)
- Pagination for custom query returns 404
- Pagination with a custom post type
- I want to create pagination for my custom post type archive that i am displaying with loop
- next_posts_link() always generates second page link on custom post type
- Pagination URL in Custom Content Type
- yet another: custom post type with pagination not working in WordPress
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Custom post type with Filter and Page Nav
- Pagination fault in custom post type archive page [duplicate]
- Pagination custom post types outside loop
- Paginating custom query on category template
- Pagination in custom loop for custom post type throwing 404 error
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- WordPress Load more posts by ajax not working
- Pagination not working with custom loop
- Pagination not working with custom loop
- Archive Page Pagination not working
- Classic Custom Post Types and WP-PageNavi
- List of filtered Events is breaking paging?
- Pagination not working on homepage
- How do I paginate a custom post type listing on a custom template page?
- Pagination not working for archive
- Archive page – problem with pagination
- WordPress getting problem with pagination [duplicate]
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Pagination not working only on Archive-Name.php using new WP_Query
- Pagination not working on custom post type archive
- the_post_navigation in single page with multiple taxonomies
- Archive pagination – second page shows exactly the same posts
- Two pagination in one page without AJAX