The problem is that your first rule is capturing anything that begins with news/archive/
.
Add the $
anchor to match only news/archive/
:
add_rewrite_rule(
'^news/archive/?$',
'index.php?post_type=news&news_archive=true',
'top'
);
Your pagination rule will then begin to work as-is after you flush permalinks.
Related Posts:
- Pagination Doesn’t Work
- How can I get custom post types to recognize pretty permalink variables?
- Custom post type archive 404’s with paginate_links
- 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
- Related posts by author pagination not working on the production site
- Secondary loop pagination on custom post type single post gets redirected to first page
- Numeric pagination custom post type
- Pretty paged permalinks in custom post type loop
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- Custom Taxonomy List links being re-written
- custom post type paging not working past page 3
- WP_Query pagination using only numbers instead of /page/1 on URL
- Pagination not working
- Pagination Issue: Custom Post Type In Index
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- WordPress rewrite my URL when i use pagination
- Unable to get paginate_links working with a custom query [duplicate]
- Custom post type, permalinks & pagination, going wrong
- Pagination on category page with custom post types
- How to add pagination to wp_query [duplicate]
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Pagination on a custom post type loop
- Previous/Next Link by Meta Value in CPT
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Help with Elementor Pagination CPT archive 404 problem
- Custom taxonomy rewrite give pagination 404
- Woocommerce search pagination not working
- How do you paginate a query grouped by month?
- Pagination issue on category.php using custom post type query
- How to have this permalink structure: post_type/postname/custom_inner_page
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- can these 3 queries be re-written as 1 query?
- pagination not working for category.php (custom post types in categories)
- Custom WP_Query always respond with 200 status even when no entry
- Can’t use pagination with custom taxonomy
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Trouble with pagination
- Pagination 404 on Index with custom query
- Custom post type and custom taxonomy 404 on page 2
- Pagination for search results of custom post type [duplicate]
- Pagination of custom post type leads to 404 error
- Custom Post Type Archive Pagination
- All blog posts are not showing up
- Single parent post lists child posts with pagination
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- custom taxonomy pagination 404 error
- Pagination in custom post type archive.php not working
- Pagination Not Working When Used With WP_Query() `offset` Property
- Numeric pagination custom post type
- Problems in paginate_links with custom query loop and MB-Relationships
- Permalink for custom post type pages not working
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Make pagination work as a carousel (custom query)
- Pagination not working (page/2 retunring 404 page)
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Custom taxonomy in custom post type archive with pagination
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Custom Post Type + Category archive
- query and paginate multiple post types
- Issue with permalinks for custom post type
- 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
- Paged within a custom content type template [duplicate]
- Pagination not working on homepage
- send user to first page of results when reposting to page?
- Fourth page of custom post type archive page does not exist
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Archive page – problem with pagination
- Wp-theme Development
- Query Multiple Post Types and Paginate Newly Created List
- “Page not found” while on page 2 from pagination menu
- Create an archive page by combining two post type
- How to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Custom Post Type Pretty Structure
- Get posts by category name
- Query Posts, order by meta value
- WP_Meta_Query object with conditionals
- Enabling permalinks disables custom page template
- WordPress Custom URLs
- WP_Query: Posts within category OR custom post type
- Which is the neatest way to have homepage articles and a blog?
- foreach loop inside the loop creating duplicates in output
- Custom post types and custom variables — add_rewrite_tag() not working
- list posts of two post types in a single template
- Sorting by meta_key different to search criteria?
- Setting a homepage – doesn’t seem to work
- next page with custom post
- CPT, meta-data, url parameter
- Difference between page and paged
- Shortcode / WP_Query in post changes context
- Taxonomy rewrite pagination 404
- Need to return a string as permalink insted of str_replace
- Using WP meta query to show custom post types by a start and finish date