• 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 etc

    I’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)
    the get_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.

    • This topic was modified 4 years, 3 months ago by tomse.
    • This topic was modified 4 years, 3 months ago by tomse.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I have also noticed pagination issues in WP 5.5.

    Elementor pagination is broken, it outputs a URL with /2/ but only a URL with /page/2/ works on this site for some reason.

    If you can have a URL with /page/[NUMBER] it should work.

    This is quite a big problem if Elementor is broken.

    Super Pel

    (@oiewhfufbhjsdfjbkfskjduhuyuy)

    got the same problem,

    after version 5.5 get_query_var('page') doesn’t work,
    tried to use global $page also doesn’t work.

    but when i put <!--nextpage--> to my post, it works.

    before version 5.5 i can append page number to my custom post type url and get the value with get_query_var('page'). but in version 5.5 i can’t do that anymore, even if i put <!--nextpage-->, i only can get page number up to the total of <!--nextpage--> i put in my post.

    i did not put <!--nextpage--> in my custom post type by default because i am using custom post meta. that custom post meta is contains array, so when i access e.gcustom-post-meta/2/ it will take data from custom post meta array[2].

    • This reply was modified 4 years, 3 months ago by Super Pel.
    • This reply was modified 4 years, 3 months ago by Super Pel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_query_var(“page”) pagination no longer works’ is closed to new replies.