How to get id number of next post on archive page

Hi there,
I want to add anchor link at end of each post loop with next post button, which takes user to next post on archive page therefore i want to get post id of next post on current archive page. How to get it

You might want to check out this thread for some inspiration, I think the principles in that template will get you what you need.

1 Like