WordPress.org

Ready to get started?Download WordPress

Forums

Issue with Pagination on Static Pages (4 posts)

  1. pantone
    Member
    Posted 1 year ago #

    Let's say I have a static page at: "domain.com/static". I've also read through this guide: http://codex.wordpress.org/Next_and_Previous_Links and was successfully able to place "Previous Page" and "Next Page" links at the bottom of the static page by editing my theme's Page template.

    However, the pages that are linked on "Previous Page" and "Next Page" are based on the ID of the pages. For example, if I'm on the page "domain.com/static", by clicking on "Next Page", it would end up going to the page that was created after "domain.com/static" was created.

    The way I want the pagination to behave is for "Next Page" to be linked to: "domain.com/static/page/2".

    My questions are:

    1. How do I set up pagination on Pages to behave like this?
    2. How do I actually go about editing the content of the paginated page: "domain.com/static/page/2"? Would this exist somewhere in the "All Pages" section of the dashboard?

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    what are you trying to paginate?

    static pages normally do not have multi-post loops ...

    or are you referring to http://codex.wordpress.org/Styling_Page-Links

  3. KaugKo
    Member
    Posted 1 year ago #

    Hi! static page are only to show as page, not like blog. They are acting just page it mean they don't have continues page (example: contact us, about).

    If you placed custom post loop in your static page you can go prev and next for these posts by using pagination function.

    you can read more about pagination here.
    http://wp.tutsplus.com/tutorials/wordpress-pagination-a-primer/

    Hope this might help you! good luck with your project.

  4. pantone
    Member
    Posted 1 year ago #

    alchymyth - Thank you for the Styling Page-Links resource. That is basically what I am trying to do on the static page. I quickly tested it out on my static page and the URL of page 2 appears as: "domain.com/static/2".

    Do you know if it's possible to edit the URL of the multi-page so it appears as: "domain.com/static/page-2"?

    KaugKo - Thank you for the information about the pagination function. I will look into this more.

Topic Closed

This topic has been closed to new replies.

About this Topic