Forums

Previous | Next on page.php (4 posts)

  1. millsy
    Member
    Posted 3 years ago #

    On my pages I have previous and next links for all of my post pages using the <?php previous_post('%', 'PREV', 'no'); ?> code.

    However I also have wordpress pages and would like to add previous/next links to allow for design consistency. However the pages.php file doesnt have the 'previous_post' code included to use.

    What can I do?

  2. valuxes
    Member
    Posted 3 years ago #

  3. philgons
    Member
    Posted 2 years ago #

    I have more than 1,000 pages (not posts) at different levels of hierarchy that I'd like to be able to add previous and next links to. Everything I've seen (including the link that valuxes supplied) talks about adding this functionality to post pages, not to pages. I want to add it to plain old pages.

    So if someone is at hierarchy level 1 on my site, I want them to be able to go to the previous and next pages at that level of hierarchy (my pages all have a logical progression). If someone drills down to hierarchy level 2, I want them to be able to do the same thing on that level. And so forth.

    Is this possible? It would seem that the logic exists since I can order my pages by assigning a numerical value to them. Does WP allow me to call on them dynamically? I can code this manually if I have to, but I'd really rather not.

    I've searched for plugins and found nothing that does what I want to do. The post by millsy above is the first I've seen mention of what I want from anyone else.

    Anyone have any ideas?

    Thanks!

  4. philgons
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic