WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Previous posts (6 posts)

  1. shinydustbunnies
    Member
    Posted 8 years ago #

    Okay I searched, but couldn't find what I really needed to find.

    On my page (http://www.shinydustbunnies.com/happenings) there are my past say 8 posts or however many there is, but how do I get to the previous ones? Or to be more accurate, how do I make a link (say at the bottom) that would link to the next/previous page of posts? I have no idea if I am just an idiot and have no idea what I am doing or what, but I am pretty sur ethis can be done, I just can't figure out how. I don't want to have to look under the calendar or in the archive... just like the previous page... hopefully someone can help.

    Thank you very very much.

  2. iand
    Member
    Posted 8 years ago #

    <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?> should do what you want.
    You can see here here for customisation.

  3. maerk
    Member
    Posted 8 years ago #

    As you predicted, there is a template tag which does this for you.

    http://codex.wordpress.org/Next_and_Previous_Links

    Looks like it should help, but I use a different ones:

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('&laquo; previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    </div>

  4. shinydustbunnies
    Member
    Posted 8 years ago #

    now where would I place the code for this? *LOL*

    Thank you again for the help!

  5. shinydustbunnies
    Member
    Posted 8 years ago #

    I stuck it in the footer; you all rock!!!!

    Thank you very much for helping out an absentminded pregnant chick!! *LOL*

  6. maerk
    Member
    Posted 8 years ago #

    Where you want the next/previous links to appear on your page, in your template's PHP files.

Topic Closed

This topic has been closed to new replies.

About this Topic