Jump to content

How do I make a next/previous page links by page order?


TheRevisionist

Recommended Posts

So I've been trying to add some .php to improve the navigation of my wordpress website. I used this code before:

<?php previous_post_link(); ?> • <?php next_post_link(); ?>

But it gives me the next/previous page by chronology, not order. So how do I code for next/previous page by order & page hierarchy?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...