TheRevisionist Posted June 23, 2016 Share Posted June 23, 2016 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 More sharing options...
justsomeguy Posted June 23, 2016 Share Posted June 23, 2016 It looks like the common way to do that in Wordpress is to use a plugin that lets you change the order. Link to comment Share on other sites More sharing options...
dsonesuk Posted June 23, 2016 Share Posted June 23, 2016 Usually you set the order as an argument of wp_query. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now