Query Loop – Pagination Issue
-
Hello! this is my first post, so I’d like to start by greeting the community. I am a relatively new WordPress user and I use Gutenberg.
I have a problem that I can’t solve on my own: The start point is example.com/books – and this is an archive for a Custom Post Type with a Query Loop that has pagination. When I click “next” in the pagination, the URL looks unfriendly, like this:
Page 2– example.com/books/?query=30/page=2 for the next page . When I go back to the previous one, it is:
Start Point– example.com/books/?query=30/page=1,What’s more, when I click on the page number – (between the next and previous elements), it looks like this:
Page 2– example.com/books/?query-30-page=2&cst, when I go back via previous:
Start Point – example.com/books/?query-30-page=1&cst, when I go back via page number:
Start Point -: example.com/books/?cstI would like the effect to be simply: example.com/books/?page=2 for the next page and example.com/books/ for the Start Point. Is it possible? I think the current behavior may be bad for SEO, especially since I plan to use these loops on various pages.
Please provide guidance!
- The topic ‘Query Loop – Pagination Issue’ is closed to new replies.