Multiple Loops pagination problem with custom permalinks
-
Good morning everybody,
I have run into a problem which is quite strange. I have setup a personal theme with a single.php, where I use multiple loops – one loop for displaying the actual post – with pagination back and forward – and one loop for displaying all posts in this category – with pagination back and forward (which will change the listing of all posts).
The problem is with the second loop (all posts in current category):
It works fine when I’m using the standard permalink option like:https://www.foto-gschwandtner.at/?p=235
When it comes to pagination WordPress adds “&paged=2” at the end of the URL
https://www.foto-gschwandtner.at/?p=235&paged=2
and changes the content of the second loop. Good.
If I switch to custom permalinks using “/%category%/%postname%/” for example:https://www.foto-gschwandtner.at/landschaft/montreux-4/
the pagination of the second loop doesn’t change the URL to
https://www.foto-gschwandtner.at/landschaft/montreux-4/page/2/
and does not change the content. Bad.Any idea, why it works with standard permalinks but not with custom permalinks? Could it be a WordPress bug?
- The topic ‘Multiple Loops pagination problem with custom permalinks’ is closed to new replies.