Support » Themes and Templates » Previous and Next posts not following posts on page

  • 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

Viewing 1 replies (of 1 total)
  • 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?

Viewing 1 replies (of 1 total)
  • The topic ‘Previous and Next posts not following posts on page’ is closed to new replies.