WordPress.org

Ready to get started?Download WordPress

Forums

next page not post (5 posts)

  1. igor_g
    Member
    Posted 2 years ago #

    Hi

    I'm using this structure on my blog:
    News (Main page)
    -Article 1 (Child Page)
    -Article 2 (Child Page)
    -Article 3 (Child Page)
    -Article 4 (Child Page)

    and this code to get all child pages:

    [code moderated - please use the pastebin]

    So at the moment it shows only 2 recent articles, how can I add Next/Prev links to display next 2 articles.

    Thank you!

  2. igor_g
    Member
    Posted 2 years ago #

  3. katalonian
    Member
    Posted 2 years ago #

  4. igor_g
    Member
    Posted 2 years ago #

    Thanks this is great!

  5. igor_g
    Member
    Posted 2 years ago #

    Maybe I didn't explain it properly.

    What I have is one NEWS page that displays the articles (also pages not posts). I want to limit News page to display 3 articles per page so the user would have to go to a next News page to see the next 3 articles.

    eg: News page has 6 articles(pages) but only 1,2 and 3 displayed at the beginning then the user presses NEXT and same News page displays articles 4,5 and 6

    Hope this makes sense.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.