There is an ID of the displayed post. You need to get the ID of the next post and the ID of the previous post in the same category. This is necessary to create pagination in a certain category of posts. How to do it?

  • one
    First you need to determine for yourself what the "next" and "previous" are. - Ipatiev
  • write a request that will take 1 value backwards and 1 value forward - Eugene Nagornichyh 1:54 pm

0