This works: mysite.com/sermon/term/childterm/page2/
This does not: mysite.com/sermon/term/childterm/page2/
according to your rewrite rule, I guess what you mean is
This works: mysite.com/sermon/term/page2/
This does not: mysite.com/sermon/term/childterm/page2/
I’m not a regex expert so I only come up with adding another rewrite rule to handle the
childterm situaion
add_rewrite_rule(
'sermon/(.*?)/(.*?)/page/?([0-9]{1,})/?$',
'index.php?post_type=".$cpt."&'.$tax.'=$matches[2]&paged=$matches[3]',
'top'
);
Related Posts:
- add_rewrite_rule – working fine but broken for pagination
- 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
- Search pagination rewrite to fix 404
- Changing pagination list class
- Pagination resolving to first page only
- Pagination of RSS2 feed
- How to Group Posts by the First Letter or Number?
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- Pagination Doesn’t Work
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- How to ignore or disable nextpage tag?
- category/category_name pagination 404 error
- get_query_var(‘paged’) giving same result
- Show content only on front page?
- Getting 404 on taxonomy page
- Getting pagination for second loop to work on single.php
- 5 posts per page from single category, paginated
- WordPress custom URLs for pagination pages
- Pagination problem
- Home page not obeying post per page setting on the first page only
- How to add pagination to a single post
- WordPress rewrite rules for pagination on search page
- Styling the_posts_pagination With Font Awesome
- Pagination on 2nd loop
- How can I show a multipage post as a single, wrapped post?
- Why does pagination go to a blank page when navigating through home.php?
- Pagination with $_POST and $_SESSION
- wordpress is converting ?page=2 into /2
- Template hierarchy about pagination after front-page.php
- Why do next pages load the same content rather then older articles?
- Add pagination to my custom loop [duplicate]
- Pagination with WordPress default gallery?
- Changed pagination URLS to use p= instead of paged=
- How do i improve my custom pagination?
- Post Pagination Customization (wp_link_pages) Editing Navigation
- Default pagination is broken when use ‘static page’ as ‘front page’
- Using paginate_links() to generate “01, 02, 03, 04” paginations
- Paginate results from data fetched through array
- make a pagination that show posts by date
- Adding pagination on template page wordpress
- Pagination on custom post type not working if permalinks set to rewrite url
- Theme Option not Working Inside a Function
- Paginated Archives or Loop by Month
- search with pagination not working as expected
- Cannot go back to the first paginated page using pagination links
- Remember form field values with page navigation
- How do you choose to display specific posts/pages by parent url
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Paginate Links – Mid Size Less Than 2
- tax_query does not work with pagination with custom query (both wp_query and query_posts())
- Automatically adding a link to the next page link before ” tag in posts?
- paginate_comments_links() not working
- Hide content after going to page 2 of archive, show content when back at first page
- Add pagination to this following template
- split wordpress loop into columns of categories and associated posts
- How Change URL in Pagination pagebreak no plugins wordpress?
- How is the Page Splitting implemented in the theme?
- Why the page number does not appear in splitting post?
- Use of rewind_posts() cause pagination to break
- Pagination not working in custom post type but perfectly in posts
- Paginate Images To Similate Map Drill-Down
- Custom pagination with URL parameters
- how to add pagination to a popular post custom page?
- Add pagination – syntax error when copy/pasting
- How to create a WordPress gallery with pagination
- Remove “Page” from Category archive
- Pagination not working past page 3 on archive page of category
- Using the_posts_pagination with offset adds extra empty page
- Search, pagination, the last pages leads to 404 page
- Pagination is not working in custom page template
- Pagination URL in Custom Content Type
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- 404 Pagination issue for only one category
- Plugin to show pagemap beneath certain page and next/previous page beneath certain page?
- Using WP_List_Table and search_box(): How to Paginate the Found Search Results When Sending by Method «Post»?
- URL rewrite function and pagination with year in the url
- How do I make pagination_links show as 01 02 03, instead of 1 2 3?
- wordpress pagination problem with page templates
- Fix Pagination Directory on a page set as Front Page/Main Page [duplicate]
- pagination custom post type on CP page
- Removing template part when not on homepage if / else
- WordPress pagination URL posts not load
- How to reduce the number of pages in pagination
- Use cookies in pagination
- foreach pagination
- paged query leads to 404? [duplicate]
- Pagination only working on index page not on a template page
- CPT Archive Pagination – Page not found
- Separate page for pagination possible?
- Why does WordPress keep directing or forcing my pagination?