WordPress.org

Support

Support » How-To and Troubleshooting » Get previous and next links from page hierarchy

Get previous and next links from page hierarchy

  • This is about post_type pages
    using wp_list_pages I can list all the pages in hierarchy, but i want to implement this functionality quite different,
    I want to display the previous and next pages in the page-hierarchy like
    consider
    p1
    | |_p2
    | |_p3
    | |_p4
    |
    p5
    | |_p6
    | |_p7
    |
    p6

    on page p3, p2 and p4 will be the previous and next pages respectively,
    but this breaks for page p4 it shows previous page as p3 but no next page but i want to show next page as p5, how to achieve this kind of pagination!!!!!!!!!!!!

  • The topic ‘Get previous and next links from page hierarchy’ is closed to new replies.
Skip to toolbar