The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Get next/prev post object inside wordpress loop

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #36468

    I’ve been trying to get the details of the next and previous posts inside of my loop. I have achieved this by using the get_adjacent_post() function. This works on my index.php – my main page but it doesn’t work on my author template.

    If i try and use that function in my author template, author.php, then it returns the prev/next post of the whole site not of the current loop. Essentially i want get the next/prev post by that author and not by all authors.

    Has anyone encountered that before?

    or does anyone know how i can get the next/prev post object inside of the loop?

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.