I am trying to create pagination in my theme. Everything is ok except when I click on pagination buttons for example [example.com/blog/?page=2]
it will redirect to example.com/blog
, but it's ok for another parameter like [example.com/blog/?_page=2]
. I want to know what is the problem and how can I fix it
page
is a reserved query arg in WordPress, so basically,_page
worked because it's not a reserved query arg. But you should edit your question and add your code - your pagination function/code and the code in the template used on that page (/blog/
).