Have you tried:
The main one:
add_rewrite_rule( 'region/([^/]+)/type/([^/]+)/?', 'index.php?taxonomy=region&term=$matches[1]&post_type=$matches[2]', 'top' );
For pagination
add_rewrite_rule( 'region/([^/]+)/type/([^/]+)/page/([0-9]{1,})/?', 'index.php?taxonomy=region&term=$matches[1]&post_type=$matches[2]&paged=$matches[3]', 'top' );
Out of curiousity, I replaced one of the ([^/]+)
with the literal ‘type’ since that doesn’t seem to be a dynamic variable.
If the pagination doesn’t work, try switching the order of when it’s declared, i.e. before or after your other rewrite rules. Alot of issues have to do with what order they’re declared which effects which rule is run first.
Also, the Rewrite Rules Inspector plugin can be super helpful in helping you figure out which rewrite rules are being run for specific URLs.
Related Posts:
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- Why am I getting a 404 on anything past page 1 of my query?
- remove_query_arg() on rewrite rule
- Pagination: /tags/tag_name/?paged=2 gives a 404 error
- How to stop WordPress returning 404 on paginated pages after using add_rewrite_rule()?
- rewrite url with parameter or pagination beyond certain value does not work
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- 404 when using pagination in a category
- Problem with Paging 404
- Prevent WordPress to remove query vars from url
- Custom Query & Rewritten URL Pagination 404
- URL rewrite breaking pagination
- Search pagination rewrite to fix 404
- Paged posts – how to use numbers and next/previous links?
- How to get the number of Pages in a single Post Pagination?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Disable wordpress pagination URL rewrite for specific page
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- Combining WordPress pagination functions for archives and search results
- Passing custom args in paginate_links
- Paginate a list of users?
- Allow Users to Choose Pagination or Next/Previous (Combine)
- Pagination that includes “view all on one page”
- Custom page-links for paginated posts | wp_link_pages quicktag
- Broken pagination, need help figuring out why!
- How to grab a specific page of content from paginated post?
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Pagination with get_posts seems to work but links not showing
- paginate_links WP function
- How to let crawlers search paginated comments?
- In pagination, change link for page 1 to homepage
- Remove “/page/1” from the URL
- How do I insert CSS into a function?
- wp_list_categories pagination
- Insert pagination links – wp_link_pages() – before filters on posts
- Pagination for multiple queries for different authors on author.php
- WordPress 5.5 breaks pagination in an older plugin
- How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?
- Paginate Pages by only showing 3 pages at most
- Using Pagination with Timber Routes
- Disable Pagination on Pages
- Is it possible to have pagination with an offset loop?
- Authors list Pagination?
- Exclude certain post formats from pagination
- How to use pagination on costum post type
- How to make WP Query Pagination work
- Archive pagination not working
- Wp pagination for custom database table
- How to customize wp_link_pages()?
- How to implement a slideshow on WP similar to these examples?
- website with pretty permalinks except pagination
- Page with Multiple Loops Breaking Pagination
- Can posts_nav_link show post titles?
- The paging is very slow under a large number of articles
- Custom admin page pagination permissions error
- Pagination – not progressing
- Error 404 on pagination on homepage
- Pagination Adding Numbers in Strange Fashion
- How do I hide a Gutenberg block when paginating
- Add pagination to WP_Query
- WordPress blog pagination not working
- Show number of pagination pages even when total under two
- how can I do numeric pagination?
- change pagination url
- empty pages on pagination with meta query
- I would like to fix a problem with post pagination: i can only see the url title (prev – next) but title is truncated
- The pagination is working on Local, not on LIVE. why?
- Creating multilingual glossary for WP
- How To Get ‘Custom SEO Titles’ For Each Paginated WordPress Page?
- Paginate Links in Wp Query Shortcode
- $paged always 0
- Extra pagination pages being wrongly generated
- Pagination not working on blog grid
- Pagination not working it makes no sense
- Pagination reloads first page but has proper url
- Pagination doesn’t work on static front page
- Changing post per page causing 404 for pagination. Need a redirect htaccess rule
- Split a long form into multiple pages
- Pagination and Custom Search page
- Pagination options using xml data instead of database?
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- pagenavi shows a lot of pages calculated from all posts in the site with query_posts
- How to devide post into more than one page using ?
- Infinite scroll repeats posts in custom loop in single.php
- One post on frontpage and an archive page
- Blog Page pagination not working, loads Page 1 each time [duplicate]
- The pagination doesn’t work
- Media library only show 2 items per page?
- Pagination Error – Same Posts Displaying Over Again
- Pagination with wp_pagenavi not working on custom page
- Pagination Broken on Loop using ACF
- how to apply Pagination on post
- paginate_links with select option
- Wrong rewrite rules
- How to change `page` slug in pagination? on a specific pagination result (not globally)
- Two pagination in one page without being synchronous
- How to build custom pagination with center pages
- Change “/” (slash) before page number in pagination path to “-” (hyphen)
- Zeroise custom pagination to have leading 0