• I am very new in WordPress and have been enjoying the nice capabilities of what WP has to offer.

    I like to see if there is any existing code to do this or any suggestion how to do it:

    the-top-page has
      sub-page-a,
        article-a-1
        article-a-2
        ...
        article-a-n
      sub-page-b,
        article-b-1
        article-b-2
        ...
        article-b-n
      sub-page-c
        article-c-1
        article-c-2
        ...
        article-c-n<
    
    when visitor click on "sub-page-a (or b, or c)", I like it to display the latest article and following by something similar to the wp_link_pages() for the visitor to scroll / view the next article in the same sub-page-x
    
    when the visitor click on "the-top-page",  I like it to display  what was shown as the sub-page was clicked, but this "the-top-page" shall show all the sub-pages.  for example:
    
    sub-page-a w/ the latest article
    sub-page-b w/ the latest article
    sub-page-c w/ the latest article
    ...
    sub-page-x w/ the latest article.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tphan88

    (@tphan88)

    After I did more digging, I like to change the wp_link_pages() to wp_pagenavi() instead.

    Basically, when the sub-page-(x) is clicked, i would like it to show the most recent article-(x) and at the bottom, show the wp_pagenavi() of the article in the same sub-page-(x).

    Thread Starter tphan88

    (@tphan88)

    Thank you very much, Esmi.

    The link you gave me does help me a lot. But that was for one other item I want to do.

    For my original post, I actually wanted something similar to what the wp_pagenavi() offering.

    Again, with my above example:

    If an article-x-n is being display, at the bottom, I would like to have the navigation links as wp_pagenavi() but for going to the next article in the same subpage.

    `Content from article-a-1

    prev | 1 | 2 | 3 next’

    when the number in ‘prev | 1 | 2 | 3 next’ is clicked, the next article in article-a will be displayed.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_link_pages() for sub-pages’ is closed to new replies.