Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter delete

    (@moonbatwingnut)

    I put this code “<?php posts_nav_link(); ?>” near the bottom of the page.php file here:

    <?php
    } // End the Loop
    ?>
    </div>
    </div> <!– #primary –>
    <?php posts_nav_link(); ?> /* added to get page navigation, I hope */
    </div>

    <div id=”rightcolumn”>

    But it doesn’t work. Can someone tell me how to use this feature please?

    Thanks,

    TW

    page.php is used to diaplay your Pages (as opposed to your posts). Which means you are putting the template tag in the wrong file.

    The first line i that article says:

    Displays links for next and previous pages. Useful for providing “paged” navigation of index, category and archive pages.

    Now we just have to find out what template files are used to display index, category and archives > Template_Hierarchy.

    Thread Starter delete

    (@moonbatwingnut)

    Ah, thanks, I keep forgetting about the special meaning of the word ‘page’. I got it to work by placing the code in the footer.php file. But it sure seems backwards to have older posts pointed to the right and newer posts pointed to the left.

    Thanks!

    TW

    According to the Codex for older posts should point to the left… but you never know ??

    Thread Starter delete

    (@moonbatwingnut)

    Huh?

    The Codex says:

    “WordPress defines “next page” as the “next page toward the past”.”

    ? Previous Page — Next Page ?

    So older posts are pointed to as being to the right, or am I missing something? And is there a way to reverse it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add ? Previous Page — Next Page ?’ is closed to new replies.