WordPress 3.4 Page Variable in Query String

We have a special deals section where I created some customized pages to present deals available to our readers. I just noticed that there was a problem with one of the pages. The pagination does not work any more. Here is a screenshot of the pagination of my page.

If you’re thinking about purchasing a new GPU, we’d greatly appreciate it if you used our Amazon Associate links. The price you pay will be exactly the same, but Amazon provides us with a small commission for each purchase. It’s a simple way to support our site and helps us keep creating useful content for you. Recommended GPUs: RTX 5090, RTX 5080, and RTX 5070. #ad

When I created these pages, I used “page” as a variable in the query string. For example, to go to the sale page #2, I have this as the URL:

https://www.kombitz.com/sale/?page=2

This stopped working after I upgraded to WordPress 3.4. This puzzled me for a while, until I noticed whenever I click on the URL, the system changes the URL to

https://www.kombitz.com/sale/2/

This, of course, does not work with my script. The workaround is actually quite easy: just don’t use “page” as a variable in the query string. I changed the variable from page to page_number, and my scripts are working once again. The updated query string is like this one:

https://www.kombitz.com/sale/?page_number=2

1 Comment

Leave a Reply