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
- Getting paginate_links() ‘end_size’ to display none
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Rewriting search and pagination base
- WooCommerce – Customer Order History Pagination
- 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
- 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
- Using loop pagination on single.php
- WordPress 3.2 query_posts and pagination, permalinks issue
- 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 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 create pagination for users list using custom array?
- Custom Pagination is Broken
- Pagination on Custom Post
- 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
- 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
- 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
- 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
- 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
- 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
- Add a leading zero to pagination
- Get current_post in reverse order with pagination
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- add_rewrite_rule questions
- How to fix blank pagination links?
- WordPress pagination broken on blog page, working for search results page
- how to exclude admin page from add_rewrite_rule in wordpress
- Pagination on Custom Loop
- How can i list all user registered on my website and have pagination [duplicate]
- Pagination not displaying
- Pagination in category.php not functioning
- How to add pagination for wordpress home page
- Pagination 404 on my index.php
- Pagination not working properly
- paginate_links() returns NULL instead of the pagination links, but pagination is actually happening
- What does this if-statement do?: if($pages=’ ‘) {}
- WordPress add parameters with friendly url structure
- Blog Posts not sorted and pagination not adjusted after filtering some category
- How to Set Page Pagination Using Ajax JQuery – WordPress
- /page/2/ redirect to 404
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- Why do I get a 404 error on my custom post type archive pagination?