Jump to content

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

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?

Share this post

Link to post
Share on other sites

It looks like the common way to do that in Wordpress is to use a plugin that lets you change the order.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...