WordPress.org

Ready to get started?Download WordPress

Forums

Get previous and next links from page hierarchy (1 post)

  1. Manoj H L
    Member
    Posted 3 months ago #

    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!!!!!!!!!!!!

Reply

You must log in to post.

About this Topic