1

I use page.previous and page.next to create links to neighbor pages.

The problem is that the "next" page is the one which is chronologically earlier. In other words, my latest page has one link, page.next (linking to an older page)

Is it possible to reverse the order?

WoJ
  • 27,165
  • 48
  • 180
  • 345

1 Answers1

0

The solution is actually obvious: just use the names the other way round:

  • page.previous points to the next item, chronologically speaking
  • page.next points to the previous item, chronologically speaking

I wonder why the names were set up like this (counter-intuitively, since all the posts must be time-stamped).

WoJ
  • 27,165
  • 48
  • 180
  • 345