At first blush, your code looks solid. Two suggestions:
1) Try putting the longer rewrite rule before the shorter one. It’s possible that the first one is being matched (because it is a subset of the longer one) and then not proceeding to check the longer one.
2) Whenever you modify rewrite rules, you have to flush and reload the rewrite rules for them to take effect. The simplest way to do this is to go to Settings > Permalinks and click Save.
EDIT: Got it. Change your second rewrite rule to resources/([^/]+)/page/([0-9]{1,})/?
. You had one too many wildcard segments.
Related Posts:
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Modify previous and next text from pagination links
- Getting paginate_links() ‘end_size’ to display none
- WordPress AJAX Pagination with query_posts
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Static Frontpage Pagination – Custom loop
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Rewriting search and pagination base
- WooCommerce – Customer Order History Pagination
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Changing Link Attributes for Wp_Link_Pages
- Custom Loop Pagination on WordPress
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Edit format of Paginate_Links()
- Pagenavi pagination via wp-query in functions.php showing same content for each page
- How to check if comments are paginated?
- get understrap pagination to work with custom query
- WordPress Rewrite API calls not creating new rules
- Customized title tag for each page in pagination?
- Add “last” and “first” to WordPress Comment Pagination Links
- Newbie question: no index.php? in my plain wordpress permalink
- WordPress get pagination on wpdb get_results
- Sorting Posts | Alphabetical Order
- Getting rid of role=”navigation” in the Home Page Pagination
- Page navigation not showing even tho it should
- How to get the Page Number of the Current Page in Single Post Pagination
- How can I add pagination and how can I change thumbnail size?
- Static variable and add_rewrite_rule?
- WP-PageNavi is showing the first page only
- How can I properly control the numbers and dots that appear in pagination?
- Increase returned number/pages on pagination
- Adding nofollow to a PHP generated Nav
- Apache Fallback instead of add_rewrite_rule
- Performance impact of rewriting WordPress URLs
- Using loop pagination on single.php
- WordPress 3.2 query_posts and pagination, permalinks issue
- Unreadable pagination
- How to show all pages in blog navigation?
- get_terms pagination
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- Append query string to all URL’s
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- custom url rewrite for wordpress
- Search not showing all results
- Pagination in plugin’s backend
- Create custom permalinks to show Custom Post Type’s relationship?
- PHP code to use on next & previouspage links
- Pagination for custom shop loop woocommerce
- How to get all author posts outside of author templates
- How to create pagination for users list using custom array?
- Custom Pagination is Broken
- Pagination on Custom Post
- Next post link on a bootstrap button
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- Prev/Next Links Broken on Static Front Page Pagination
- the_posts_pagination() not working in wpquery
- How to override url params with rewrite rules vars?
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Generating rel=”prev” and rel=”next” using filters
- Need help with Code Correction php+wordpress
- Custom query vars filters problem with pagination
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Need help with pagination
- Using rules in Posts
- Custom pagination (Previous / Next)
- WordPress pagination not working in search result page
- Remove Post if Advanced Custom Field is checked to fix paging
- How to add PHP pagination to wordpress
- pagination broken – clicking next displays “page not found”
- WordPress Rewrite Rule
- page 1 is not paged
- Pagination stays on same page for post category
- Pagination Not Working (pages duplicating content)
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- Pagination in single.php
- Pagination at category doesnt work with same name of page
- Change permalink structure specific category
- How to work Woocommerce pagination inside shortcode?
- Help to modify wp_link_pages()
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- Pagination contents not changing in Front page WordPress
- Load more posts using AJAX based on posts inside WP_Query
- How to stop hiding buttons forward / backward in pagination?
- How to make a pagination with dropdown selection?
- static page pagination not working
- Trying to get pagination working on WP_Query() post grid
- Rewrite rule for wp
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Pagination 404 error(I have refreshed the permalinks and tried several previous options)
- Pagination – Previous link is not show and Next link sticks at page 2
- Top Authors list by highest post views with Ajax pagination
- How can I get my pagination loop to display the correct number of total pages?
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- WordPress Single Post Pagination Numbered and Navigational
- Exclude a category slug on pagination
- Add a leading zero to pagination
- Get current_post in reverse order with pagination
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Apply filters when loading post via ajax