Archived topic
category/page/2 returns 404
7 replies · Started by Karl on November 27, 2019
So I have a category page and when I click next to see more posts I get a 404 error.
This is my site:
https://velstelt.no/anbefalte-produkter
on this page at the bottom I click "Neste" (next).
https://velstelt.no/anbefalte-produkter/page/2/ this page returns 404.
Not sure what to do. Hope somebody can help me.
Permalink settings: Custom structure /%category%/%postname%/
Category base:. (just dot). Followed this https://jonnyjordan.com/blog/how-to-remove-category-from-your-urls-in-wordpress/
Did not want a category base, maybe this is the problem?
Hi there,
have you tried rebuilding the permalinks?
Dashboard > Settings > Permalinks - and hit Save a couple of times.
If that doesn't work then try putting back the category base to default to test if this is the issue.
Hi, I fixed the problem by installing a plugin called: Post Category Prev-Next Link Fix.
Not sure how it got solved but assume there was rewrite issue when not using a category base (category base = dot). For my next website I'm just gonna have post name in the URL. Gives me more fleksibility.
I don't dare to change structure now because of SEO and google index.
Glad to hear you got it resolved.
I have the same problem.
Rebuilding the permalinks does not help...
I will try your solution Karl.
Still, I wonder if this is Generatepress related or not?
Hi there,
GeneratePress has nothing to do with the permalink structure. This is controlled by WordPress.
There has been several Stack Overflow reports of the . category base method breaking pagination.
Best to use a plugin if this is what you're trying to do. Let us know.
Thanks for clearafying this David! ;)
You're welcome