get_query_var(“page”) pagination no longer works
-
I have a site with basically the same code running since 2013, never had any problems with updating WP until to 5.5
I have a custom template which has a pagination bar.
this has worked flawlessly.
i.e.
<site>/<page>/2
would show page 2 etcI’m utilizing the
get_query_var("page")
to get what page it’s on, and build the pagination bar as well.
so the url has the page number in it’s address.
after updating to 5.5 (and clicking on i.e. page 2 in the pagination bar)
theget_query_var("page")
doesn’t seem to have any integers.I can see the page shows 2 in the address bar of the browser, refreshes itself and the url goes from
<site>/<page>/2
back to page 1<site>/<page>/
I checked the codex but it doesn’t seem the function has changed.
For now I’ve gone back to WP 5.4 until I can resolve this issue.
- The topic ‘get_query_var(“page”) pagination no longer works’ is closed to new replies.