WordPress.org

Forums

Next and Previous Posts (2 posts)

  1. doughthedj
    Member
    Posted 5 years ago #

    I have a site I am working on that there is only 1 post displayed per page. Instead of the next and previous page links linking to pagination, i.e., mydomain.com/page/2, I would like to make the links next and previous post and have it link to the next or previous posts permalink. I read about using <?php next_post_link() ?> instead of <?php next_posts_link() ?> but I am not sure how to do this outside of the loop.

    Is this possible?

  2. doughthedj
    Member
    Posted 5 years ago #

    I was able to modify this and got what I needed working.

Topic Closed

This topic has been closed to new replies.

About this Topic