Viewing 4 replies - 1 through 4 (of 4 total)
  • page is a reserved term in WordPress, which means WordPress uses this throughout its system to ensure it can operate correctly. Making changes to the behavior of reserved terms should be avoided when possible, i.e., it would be easiest and safest to use a different query var.

    Are you able to use a different query var?

    Thread Starter friendrix

    (@friendrix)

    I use page in pagination when show product list. Is it wrong? Shouldln’t I use this var at all?

    Now I use var page and all works great. I just want to change url appearance.

    May be there is a way at least to change this:
    https://test.ru/catalog/2/?var=value
    to this:
    https://test.ru/catalog/page/2/?var=value

    Thanks for answer!

    Thread Starter friendrix

    (@friendrix)

    I found that using var paged turn URL to view like this
    https://test.ru/catalog/page/2/?var=value
    Is this var recommended for use in pagination? Or I should use a different query var?

    OK, thanks for clarifying! In your case, you absolutely should use the built-in query var. Based on your first post, it sounded like you wanted to use this query var for something more custom and prevent the default behavior, but I see now that you’re merely concerned with the presentation.

    The difference between page and paged is that page is used for pagination on a static front page, but anywhere else in WordPress, paged should be used. You can find more info about the pagination parameters in the WordPress codex.

    Does everything work how you need it to when using paged?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress rewrites variable “page”’ is closed to new replies.