Custom Rewrite Slug Messes with Pagination
-
To begin, let me say that I love this plugin! Thank you.
I recently noticed the “rewrite slug” option for my custom post types, which is very nice. I noticed that it even works when I put in two slugs — with a slash in the middle — when my custom post type single page needs to be deeper into the URL structure to match its parent page.
Ex:
parent = https://www.mysite.com/about/news/
single = https://www.mysite.com/about/news/my-news-item/In this case, the custom rewrite slug for the “news” CPT is “about/news”.
This has all been fine and dandy until I started trying to get pagination to work on my CPT. I then noticed that page 2 and on get me a 404 error.
However, I tried removing the custom rewrite slug and pagination works. What do you think is happening? It seems odd that this would affect it at all because the pagination is on the parent page, right?
In any case, would be great to get any insights people have on this. Thanks!
- The topic ‘Custom Rewrite Slug Messes with Pagination’ is closed to new replies.