As you can see in the rewrite analyzer, /projects/page/2/
sets projects=page&page=/2
instead of pagename=projects&paged=2
as we would like. So you just need to add a rewrite rule for this special case (in the register_projects()
function, after you register your custom post type, would be a good place):
add_rewrite_rule( 'projects/page/([0-9]+)/?$', 'index.php?pagename=projects&paged=$matches[1]', 'top' );
Remember to flush your rewrite rules, by visiting the Permalinks page or by some other way.
Related Posts:
- Custom post type pagination 404 fix?
- Pagination throws 404 error on custom taxonomy archive pages
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Multiple Paginations on one Page
- Archive page…limiting posts per page
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- paginate function in archive for custom-post-type
- Custom post type archive page pagination
- How can i change the output of posts_nav_link();
- Custom Post Type Archive Pagination
- Custom post type pagination problem – page 1 and 2 show same content
- paging is not working properly on news archives page [duplicate]
- Pagination not working for archive
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Setting up custom post type archives in WP3.1? Any luck?
- How to show more posts on an archive page?
- Pre get posts for single post
- Pagination not working with custom category template
- Custom Post Type Archive URL takes over page URL
- Display all custom post types in archives.php
- How to Add Pages Under Custom Post Type URL Structure?
- Custom Post Type pagination – normal solutions aren’t helping
- Pagination Doesn’t Work
- Numeric pagination custom post type
- Posts in Multiple Columns and Rows with one single loop
- Include Custom Posts Type in Year/Month/Date Archive
- where can I see my custom post type archive template?
- Pagination gives 404 error
- Call different archive page based on post type
- Pagination not working
- Pagination Custom post type
- Custom Post Types and archives
- How to get “custom post type”-archive with working permalink to it?
- Unable to get paginate_links working with a custom query [duplicate]
- Custom post type, permalinks & pagination, going wrong
- Repeating posts when paginating random posts
- Custom template page with custom archives listing by user
- Pagination for custom php code
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Root slug of taxonomy returning 404
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Paging doesn’t work?
- Custom taxonomy rewrite give pagination 404
- Next and Previous Posts of Same Parent
- How to handle paged param in post and custom-post-type?
- Next Post links not working in custom post type shortcode
- Custom Post Types strange pagination problem
- How can I get this request to use the Custom Post Type page template instead?
- Custom post type posts don’t show in archive widget
- Archive for a Taxonomy of a Custom Post type
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Custom WP_Query always respond with 200 status even when no entry
- How can I use archive-{post_type}.php theme template?
- Return the name of the post type
- Pagination 404 on Index with custom query
- archive as a page, so that it can be added in the wp_menu_nav
- Break up posts per page in two sections
- Dynamic category name in query post
- Archive Template being used instead of Category Template for Custom Post Type
- pre_get_posts works in post type archive but not in single post
- Custom Post Type Pagination on Single.php?
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can I increase the post count for custom post types only?
- Custom post type pagination error
- Is possible register two archive pages for single custom post type?
- get_query_var(‘paged’) return 0 in custom category page
- users post count
- Custom post type paging return home page
- Custom Post Type Archive Page showing as 404
- Pagination on custom post type without plugin
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Pagination for custom query returns 404
- Custom Post Type Pagination – not displaying posts
- The page or ad listing you are trying to reach no longer exists or has expired
- next_posts_link() always generates second page link on custom post type
- 2 custom posts types, in their own columns, one pagination for both
- Pagination functions won’t work
- pagination for a custom query
- Custom nav menu current item custom link problem
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Pagination on custom post types
- Stop Custom post type from being searched via URL
- archive-{custom_post_type}.php not getting recognized wordpress
- Pagination in custom loop for custom post type throwing 404 error
- Pagination for a Custom Taxonomy
- Custom Post Types Archives and daily/monthly joke
- WordPress Load more posts by ajax not working
- Pagination for event query
- Display results from two Custom Post Types in page template
- WordPress custom post type post and category links 404
- Archive page – problem with pagination
- Pagination not working in custom post type
- Pagination not working
- Pagination on category pages using wp_pagenavi causes 404 errors
- CPT Archive Pagination – Page not found
- Custom post type pagination conflict result in 404