Previous and Next posts not following posts on page (2 posts)

  1. Moccsie
    Posted 3 years ago #

    I'm not knowledgable on computer coding so please forgive me if this is a silly question. Is there a way to fix my theme so that the preveious and next post options at the end of the current post someone is reading are only the posts on a certain page versus posts in chronilogical order for the entire site? I have various pages focused on certain topics that are all listed with parent directory home. I want to make the pages so that when people hit previous or next the posts they view are only those in that page. I have my website formatted with the Brunelleschi theme. Can someone please advise? thank you

  2. Mayeenul Islam
    Posted 3 years ago #

    Code for "Next Post" and "Previous Post" link is:

       <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
       <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>

    isn't it working for you?

Topic Closed

This topic has been closed to new replies.

About this Topic